NHunspell - Spell Checker, Hyphenation and Thesaurus
NHunspell brings the Open Office and Libre Office spell checking, hyphenation and thesaurus (Hunspell) to the Microsoft® .NET Framework. NHunspell is a C# library that wraps native libraries for Hunspell and Hyphen. It provides a native implementation for MyThes.
Get Started with NHunspell
NuGet is the recommended installation method for NHunspell. Go to the NuGet package manager (Project > Manage NuGet Packages) in Visual Studio and add the NHunspell package.
Visit the code samples section to see how to use NHunspell. The code examples are also downloadable as a zipped Visual Studio solution. If you have questions, suggestions or find a bug, please use the free support forum to inform us.
If you miss something or need consulting or developement services, please feel free to contact us.
NHunspell is licensed under: GPL/LGPL/MPL. Free use in commercial applications is permitted according to the LGPL and MPL licenses. Your commercial application can link against the NHunspell DLLs.
The Hunspell dictionaries are often distributed in packages which are in fact Zip files. If you want to use them you must extract the dictionaries. Hunspell is used in many projects, therefore the dictionaries are widely spread and it can be a mess to find the newest ones. Below are web sites and direct links to Hunspell dictionaries. Important: Dictionaries have a own license which may not be public domain. Check the dictionary license first before you use them.
The spell checker Hunspell needs two files:
Dictionary file with .DIC extension (e.g. en_us.dic)
Affix file with .AFF extension (e.g. en_us.aff)
The hyphenator Hyphen needs one file:
Dictionary File with .DIC extension (e.g. hyph_en_us.dic)
To distinguish between Hunspell and Hyphen dictionaries, the Hyphen dictionary names start with 'hyph_' by convention.
The thesaurus MyThes needs one file:
Data file with .DAT extension (e.g. th_en_us.dat)
Open Office Dictionaries
Dictionaries are distributed as Open Office Extension (.OXT). In fact the Open Office extension files are Zip files. To get the dictionaries you must download and unzip the .OXT file.
Open Office 3.x and above Dictionaries
Open Office 1.x and 2.x Dictionaries
The Firefox add-ons (.XPI) are in fact Zip files. To get the dictionaries you must unzip the .XPI file.
The Thunderbird add-ons (.XPI) are in fact Zip files. To get the dictionaries you must unzip the .XPI file.
NHunspell has four components: Spell checking, hyphenation thesaurus and a spell engine for high throughput multi-threaded spell checking.
The spell checker library Hunspell is a state of the art spell checker for languages with complex word compounding and rich morphology. It was written by László Németh for spell checking of the Hungarian language and can be used with utf8 encoded Unicode directories. Hunspell is based on MySpell and can use MySpell directories too.
Hunspell is the default spell checker of OpenOffice, Mozilla Thunderbird and Firefox, Google Chrome and the Apple MAC OS/X operating system since version 10.6 "Snow Leopard". Hunspell is based an MySpell and can use the MySpell dictionaries. It is an alternative to GNU Aspell, ISpell, PSpell and Enchant.
The hyphenation library Hyphen is part of the Hunspell project written by László Németh. It is a state of the art hyphenator.
MyThes is a managed thesaurus implementation it can use dictionaries form Open Office.
SpellEngine - Spell Check, Hyphenation and Thesaurus for Server and Web Server (ASP.NET)
SpellEngine allows the thread-safe execution of spell check requests. It is a component opimzed for servers. All NHunspell features (spell check, hyphenation, thesaurus, analysis and generation) are integrated. To ensure full utilization of the CPUs on several requests, one Hunspell, Hyphen or MyThes is instantiated per processor or processor core and controlled by a semaphore. Multiple dictionaries can be installed to serve different languages. Spell check, hyphenation, and synonyms in multilingual applications are supported without any additional programming.
A free online thesaurus, hyphenator and spell checker was mad with the new SpellEngine. Please visit the homepage:
Online Spell Check, Hyphenation and Thesaurus