Lundez / JavaSymSpell

SymSpell v6.4ish ported to Java 8. Will be a module in my Master Thesis.
MIT License
22 stars 13 forks source link

Completions #5

Closed trans closed 5 years ago

trans commented 6 years ago

I would also like to add a completions method -- return all the words that start with a given prefix. It would be cool if it could also handle spelling errors in the prefix, but one step at a time.

Would this be an acceptable pull request?

Lundez commented 6 years ago

Yes indeed. Just create a new method. I actually implemented this (all words given prefix) in my Master Thesis but never pushed it to SymSpell. Could look into it again.

It is easily achievable by changing the EditDistance.java file.

The spell correction of prefix should be rather simple to implement as well, but creating to many "rules" or what to call it might introduce unexpected errors in my experience.

Lundez commented 5 years ago

I believe that this was a non-issue and self-solved locally as no response was given. Closing issue.