Wednesday, 15 February 2012

spell checking - Examples/Tutorials of Hunspell -


I have tried to see the documents found on SourceForge with Hanspel, but I still have lost what is missing Are any decent examples that will be able to follow the C ++ beginners? If unsuccessful, is there a free / openers spell checker which is easy to use?

I agree that navigating their website is a bit difficult and there are not many tutorials for it.

I only recommend diving.

For example, there is some code for NHunspell , which is just the actual version. The code below is just basic use, but anyone should still be useful to get started.

You can open Open Office

  // Epiphth = path. To file, // dictpath = path, make .dic file // and load your hunter. NHunspell.Hunspell hunspell = New NHunspell.Hunspell (Epiphth, Dickpath); // Want to add a word that is not part of the original dictionary? Sure, we can do this hunspell.Add ("stackoverflow"); // Check if a word is a valid bool Valid = hunpsell.Spell ("stackoverflowed"); If (Isovalid) {// offers some suggestions for the list of this word & lt; String & gt; Suggestion = Hunter Suggestion ("Stackworflow"); ... stuff with your list of suggestions}    

No comments:

Post a Comment