java - guess words using dictionary -


i guessing key of less-simple simple substitution ciphertext. rule evaluate correctness of key number of english words in putative decryption.

are there tools in java can check number of english words in string. example, "thefoitedstateswasat"-> 4 words "thefortedxyzstateswasathat"->5 words.

i loaded words list , using hashset dictionay. dont know inter-word spaces belong in text, can't validate words using simple dictionary.

thanks.

i gave answer similar question here:

if word made of 2 valid words

it has java-esque pseudocode in might adaptable solves problem.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -