Spell correction library
- Java 8
- Maven
- Create a new
Spellor
object:
Spellor spellor = new Spellor();
- You can feed Spellor with the contents of a custom file. Just input the path and it will take all the words inside the file and add to the dictionary:
spellor.trainOnData("D:/data/input/words.txt");
- Just get the appropriate correction of the word you need using the
correction
method:
spellor.correction("spelaing"); // returns spelling
- Go to the project folder and run
mvn install
- Use in your project like this:
<dependency>
<groupId>com.manparvesh.spellor</groupId>
<artifactId>spellor</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>