14 ms·
A simple way to try it, in Python: >>> import random >>> words = open('/usr/share/dict/words').read().split() >>> words = filter(str.islower, words
by chrismorgan 13y ago
A simple way to try it, in Python:
>>> import random
>>> words = open('/usr/share/dict/words').read().split()
>>> words = filter(str.islower, words)
>>> ' '.join(random.sample(words, 5))
- makeshifthoop 13y agoHow would you know if the word combination is a valid sentence? NLTK?
- shoo 13y agoor try something daft - e.g. google it as a phrase, count hits?
- chrismorgan 13y agoI just parsed them manually; I didn't come up with any syntactically valid combinations in the first 100 attempts.