2013-06-21 19 views
5

Hunspell ile SourceForge üzerinde bulunan belgelere bakmayı denedim, ancak hala kayboldum. C++ acemi tarafından takip edilebilecek herhangi bir iyi hunspell örneği var mı? Başarısız, kullanımı kolay herhangi bir serbest/açık kaynak yazım denetimi var mı?Örnekler/Hunspell Öğreticiler

cevap

2

Web sitelerinin gezinmek için biraz zor olduğunu ve bunun için çok öğretici olmadığını kabul ediyorum.

ben sadece dalış öneriyoruz. Örneğin

burada sadece .net sürümüdür NHunspell için bazı kod vardır. Aşağıdaki kod sadece temel kullanımdır, ancak birilerinin başlatılması için hala yararlı olacaktır.

Sen Open Officerepository

//affPath = path to the .aff file 
//dictPath = path to the .dic file 

// create and load your hunspell object 
NHunspell.Hunspell hunspell = new NHunspell.Hunspell(affPath, dicPath); 

// want to add a word that is not part of the base dictionary? Sure, we can do that. 
hunspell.Add("stackoverflow"); 

//lets check if a word is valid 
bool isValid = hunpsell.Spell("stackoverflowed"); 
if(!isValid) 
{ 
    //lets get some suggestions for this word 
    List<String> suggestions = hunspell.Suggest("stackoverflowed"); 
    ...do stuff with your list of suggestions 
} 
gelen sözlükleri indirebilirsiniz
İlgili konular