args are --input-corpus 2.short.shelley.txt --ngram-length 2 --output-state 2.short.state { "counts" => { "achieve|treading" => 1, "acquired|new" => 1, ...big snip of similar... "words|of" => 1, "works|in" => 1, }, "cum-twisted-dist" => { achieve => ["treading", 1], acquired => ["new", 1], already => ["marked", 1], and => [ "the", 0.142857142857143, "performed", 0.285714285714286, "that", 0.428571428571429, "even", 0.571428571428571, "show", 0.714285714285714, "their", 0.857142857142857, "almost", 1, ], As => ["he", 1], as => ["if", 1], ascend => ["into", 1], be => ["transmuted", 1], blood => ["circulates", 1], ...big snip... with => ["a", 0.5, "its", 1], words => ["of", 1], works => ["in", 1], }, "dist" => { "achieve|treading" => 0.0087719298245614, "acquired|new" => 0.0087719298245614, ...big snip... "words|of" => 0.0087719298245614, "works|in" => 0.0087719298245614, }, "N" => 2, } ./2.analyse_text.pl : done.