Skip to main content

Dictionaries

There are countless dictionaries available for the Hunspell library.

Historical PPJ distributions included dictionaries such as:

  • English (United States): en_US
  • German: de_DE
  • English (United Kingdom): use the installed dictionary matching the en-GB culture
  • Swedish (Sweden): sv_SE
  • Italian (Italy): it_IT
  • French (France): fr_FR

Each dictionary is composed of two files: .dic and .aff files. e.g.: the en_US dictionary has the files en_US.dic and en_US.aff.

Dictionary files must be available for loading in the path. Usually it's better if they are located in the same directory as the executable.

How to download other dictionaries​

The Hunspell project links to dictionary resources. Availability and quality vary by language.

Dictionaries are downloaded as zip files. To use the files with the PPJ Framework Spell Checker you need to extract the .dic and .aff files from the zip.

Match Files and Culture​

Keep the .dic and .aff files from the same dictionary release together. File naming must match the installed PPJ loader's culture lookup; do not assume that a language label or underscore spelling is a valid .NET culture name. For example, C# uses en-GB for British English and de-DE for German.

Check the dictionary's redistribution terms before packaging it. Verify lookup on a clean deployment and under the account running the application rather than depending on a developer machine's search path.