# Dictionary and Language Examples

> Windows Forms samples of TX Spell .NET dictionaries: a UserDictionary list box, GetHyphenationPoints, a Web API for synonyms and languages, and ignore lists.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Spell .NET for Windows Forms > Examples > Dictionary and Language Examples
- **968 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/dictionaries/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/dictionaries/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/dictionaries/llms-full.txt

---

Dictionaries decide what TX Spell .NET for Windows Forms accepts as correct: the Hunspell dictionaries of each language, and user dictionaries with the words your users add. The same language data serves hyphenation, synonyms and the detection of the language a text is written in. The samples and articles below show how an application loads and manages this data.

### Samples of the Setup

The setup installs these samples in C# and Visual Basic, below *TX Spell 11.0.NET for Windows Forms\\Samples\\WinForms* in your *Documents* folder:

| Example | What it shows | Where |
|---|---|---|
| User dictionary | A [UserDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) created or loaded from a file; with [IsEditable](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/iseditable-property/llms-full.txt) set to `true`, a list box shows its words while they are added and removed | *UserDictionary* |
| Hyphenation | A word typed in a text box, hyphenated with [GetHyphenationPoints](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/gethyphenationpoints-method/llms-full.txt) and the rules of a [HyphenationList](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/hyphenationlist/llms-full.txt), such as the minimum number of characters at the beginning and the end of a word | *Hyphenation* |

No sample of the setup shows synonyms or language detection in a Windows Forms application; the Web API below does both.

### GitHub Samples

Two repositories on GitHub work with language data: the spell checking Web API, an ASP.NET Core Web API on the [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/llms-full.txt) class that also creates synonyms with [CreateSynonyms](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/createsynonyms-method/llms-full.txt) and detects languages with [DetectLanguageScopes](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/detectlanguagescopes-method/llms-full.txt), and user dictionaries loaded into and saved from the Document Editor of TX Text Control .NET Server. [The Repositories](https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/github/#the-repositories) describes both.

The class `TXSpell` is part of TX Spell .NET for Windows Forms as well, so the code of the Web API works in a Windows Forms application. The user dictionary sample needs TX Text Control .NET Server; [TX Text Control .NET Server Document Editor](https://docs.textcontrol.com/tx-spell-dotnet-winforms/integration/document-editor/llms-full.txt) describes spell checking in the editor.

### Blog Articles With Code

These articles contain their code, without a repository. They were written for earlier versions of TX Spell .NET; check the members they use in the reference:

| Example | What it shows | Where |
|---|---|---|
| An ignore list | A second user dictionary that users can't edit, used as a list of words to ignore | [TX Spell .NET: Ignore Word List Using User Dictionaries](https://www.textcontrol.com/blog/2014/01/10/tx-spell-net-ignore-word-list-using-user-dictionaries/) |
| Dictionaries loaded on demand | The dictionary chosen by the culture at the input position and loaded from a shared location | [Loading Dictionaries Dynamically in TX Spell .NET](https://www.textcontrol.com/blog/2013/12/20/loading-dictionaries-dynamically-in-tx-spell-net/) |
| Merged text in a user dictionary | The text of merged fields added to a temporary user dictionary, so that names from a database aren't marked as misspelled | [Spell Checking, MailMerge and UserDictionaries](https://www.textcontrol.com/blog/2012/11/19/spell-checking-mailmerge-and-userdictionaries/) |
| Dictionaries from embedded resources | An [OpenOfficeDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/openofficedictionary/llms-full.txt) created from the lines of a dictionary and affix file stored as resources in the assembly | [TX Spell .NET 3.0: Loading Dictionaries from Embedded Resources](https://www.textcontrol.com/blog/2012/09/19/tx-spell-net-30-loading-dictionaries-from-embedded-resources/) |
| Hunspell dictionaries from OpenOffice | The *.dic* and *.aff* files taken from an OpenOffice extension | [Using Hunspell Dictionaries from OpenOffice.org in TX Spell .NET](https://www.textcontrol.com/blog/2012/02/15/using-hunspell-dictionaries-from-openofficeorg-in-tx-spell-net/) |

### Next Steps

- [Dictionaries and Languages](https://docs.textcontrol.com/tx-spell-dotnet-winforms/dictionaries/llms-full.txt): Hunspell dictionaries, user dictionaries and language detection, explained.
- [Hyphenation](https://docs.textcontrol.com/tx-spell-dotnet-winforms/hyphenation/llms-full.txt) and [Synonyms and Thesaurus](https://docs.textcontrol.com/tx-spell-dotnet-winforms/synonyms/llms-full.txt): the other uses of the language data.
- [Spell Checking Examples](https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/spell-checking/llms-full.txt): the samples of spell checking itself.

---

## Nearby

- **Previous:** [Spell Checking Examples](https://docs.textcontrol.com/tx-spell-dotnet-winforms/examples/spell-checking/llms-full.txt)
- **Next:** [What's New](https://docs.textcontrol.com/tx-spell-dotnet-winforms/whats-new/llms-full.txt)
