u can use morkow chain methods to find sequential order of words in books.
in this metod u can easly post it 3,4 word frequences but generaly 2 words order is more use full.And morkow chains alg. makes output(readble and meanful) with that algoritms.
a short examples:
"u want to learn morkow chain.""
to take 2 word in ur one hand like this
u want ------->next one ----->to
want to ------->next one ----->learn
to learn ...
until end of words(it means .)
ur databases
databases :
--------------------------------------
key1 key2 next_one
u want to
---------------------------------------
...
All key1+key2 must be unique that means no 2 records exists.
Also u can do it per words
databases :
--------------------------------------
key1 counts
want 1
--------------------------------------
if u saw a "want" again u just count++ values
i hope this useful for u.
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.