morfologik / morfologik-stemming

Tools for finite state automata construction and dictionary-based morphological dictionaries. Includes Polish stemming dictionary.
BSD 3-Clause "New" or "Revised" License
187 stars 44 forks source link

runon-words doesn't help with "alot" #32

Closed danielnaber closed 9 years ago

danielnaber commented 9 years ago

Speller.replaceRunOnWords() won't suggest a lot for alot, as the first pair it tries is al + ot. The next one it tries is alo + t, so at the end it does allow a single character. The easiest solution seems to be to simply allow a single characters at the beginning of the word, too.

danielnaber commented 9 years ago

Fixed by pull request #33