We define the closeness of relationship between two characters using a <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">distance measure</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">dist</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">X</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">(p,q)</hi>, where <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">p</hi> and <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">q</hi> are the strings corresponding to these characters and <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">X</hi> is the number of tokens between them (Park et al., 2012). In addition, we introduce the <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">context measure</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">cont</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">Y</hi> <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">(p,q)</hi>, where <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">p </hi>and <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">q</hi> are the strings corresponding to these characters and <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">Y</hi> is the number of tokens before the character <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">p</hi> and after the character <hi xmlns="http://www.tei-c.org/ns/1.0" rend="italic">q</hi>. While the former measure allows for detecting those characters that are closely related to each other, the latter one enables a contextual analysis of their relationship.