What's a word?
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Oct 29, 2004
- 403 views
Using rules 2 and 6, any subword of a word is a word as long as it satisfies rules 3-5. Then, in the all-letter string: "rthiusoshysegfergzpzbhoimj" (randomly keyboard-generated) the following are words: rthiusoshysegfergzpz thiusoshysegfergzpzb hiusoshysegfergzpzbh etc, as well as any 1-19 character substrings of them. I'd suggest changing rule 2 like this, for clarification: "A word is defined as a maxiimal (or, synonymously, greedy) string of adjacent characters composed entirely ... " (rest unchanged) And rolling back on the recent addition in rule 1, which doesn't seem quite natural (see my previous post). CChris