Hello,
I am working on a application able to read the OCR text from .pdf files in order to improve the quality of the text we have decided to implement Hunspell and it works! however now we need to grant the user the abilty to add new words to the dictionary file, I have been trying to add new words to the Hunspell dictionary (huspell.add("newword");) according to some documentation the new word is not been added to the dictionary file but "newword" is available for as long as the Hunspell object is alive, now I am following the approach to create a .txt file where the all the new words from the users are going to be stored, these words are being added to the dictionary using the add() method but it does not work I don't see the difference, do I need to do something else other than just adding the new words to the hunspell object before checking any word? should I specify an specific format in the .txt file for the new words?
I am working on a application able to read the OCR text from .pdf files in order to improve the quality of the text we have decided to implement Hunspell and it works! however now we need to grant the user the abilty to add new words to the dictionary file, I have been trying to add new words to the Hunspell dictionary (huspell.add("newword");) according to some documentation the new word is not been added to the dictionary file but "newword" is available for as long as the Hunspell object is alive, now I am following the approach to create a .txt file where the all the new words from the users are going to be stored, these words are being added to the dictionary using the add() method but it does not work I don't see the difference, do I need to do something else other than just adding the new words to the hunspell object before checking any word? should I specify an specific format in the .txt file for the new words?