A method encodes a word or words. A sequential input string of symbols
representing a word or a plurality of words is parsed into segments. A
graph is constructed having spatial levels, each level including nodes.
The segments of the input string are mapped to the nodes according to the
levels and attributes are assigned to the nodes according to the
segments, where an entropy of the word or plurality of words is a
constant times an entropy of the graph and of the nodal attributes.