# Sneak Peek TX Spell 5.0: Language Detection Engine

> TX Spell .NET 5.0 introduces a language detection engine that identifies over 30 languages from text with minimal sampling. Built on the Unicode Bidirectional Algorithm, it returns language scopes with start index and length, and includes Visual Studio design-time support.

- **Author:** Bjoern Meyer
- **Published:** 2014-07-28
- **Modified:** 2026-03-05
- **Description:** TX Spell .NET 5.0 introduces a language detection engine that identifies over 30 languages from text with minimal sampling. Built on the Unicode Bidirectional Algorithm, it returns language scopes with start index and length, and includes Visual Studio design-time support.
- **4 min read** (616 words)
- **Tags:**
  - Release
  - Spell Checking
- **Web URL:** https://www.textcontrol.com/blog/2014/07/28/sneak-peek-tx-spell-50-language-detection-engine/
- **LLMs URL:** https://www.textcontrol.com/blog/2014/07/28/sneak-peek-tx-spell-50-language-detection-engine/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2014/07/28/sneak-peek-tx-spell-50-language-detection-engine/llms-full.txt

---

In version X10 of TX Text Control, we introduced language scopes that can be defined using the [Selection.Culture](https://docs.textcontrol.com/textcontrol/windows-forms/ref.txtextcontrol.selection.culture.property.htm) property. Based on this specified language, the spell checking engine is using the appropriate dictionaries and hyphenation lists for spell checking, the suggestions and hyphenation.

In TX Text Control, a new dialog has been implemented that is used to define the language at the current input position or selection:

![Sneak peek TX Spell 5.0: Language recognition engine](https://s1-www.textcontrol.com/assets/dist/blog/2014/07/28/a/assets/language_dialog.webp "Sneak peek TX Spell 5.0: Language recognition engine")The tiny icons ![Spell icons](https://s1-www.textcontrol.com/assets/dist/blog/2014/07/28/a/assets/icons.webp "Spell icons") in the dialog indicate that the dictionaries and hyphenation lists are available for that specific language.

Language scopes are exported by TX Text Control and MS Word automatically. But what if the document is coming from another source or if formats are loaded that doesn't have a language defined?

Version 5.0 of TX Spell .NET (for Windows Forms and WPF) will be released with a new feature: **Language Detection**.

Based on a very sophisticated algorithm, TX Spell .NET 5.0 is able to detect the used languages from out of more than 30 languages. Based on the detected languages, you can add the proper dictionaries to the dictionary collection or load the appropriate hyphenation lists.

The following screenshot shows a sample project that will be shipped with the installation package. The language scopes are colorized to visualize the various detected languages.

![Sneak peek TX Spell 5.0: Language detection engine](https://s1-www.textcontrol.com/assets/dist/blog/2014/07/28/a/assets/language_scopes.webp "Sneak peek TX Spell 5.0: Language detection engine")Aside from the unbeatable performance and suggestion engine quality, a unique feature of TX Spell .NET is the adaptive spell checking for multilingual users. You can use several language and user dictionaries at the same time. This new functionality makes this unique feature complete.

High Performance Engine
-----------------------

The language detection engine requires a very low sampling size - it can detect the language from a single sentence with 4 or more words. It is not resource intensive, and returns the detected language(s) very fast. A typical document with 100 pages and 5 languages takes only less than 500 milliseconds on a PC with average specs.

The engine is based on the Unicode Bidirectional Algorithm (UBA) and its various levels to support documents that contain text from right-to-left as well as left-to-right in the same document.

Visual Studio Design Time Support
---------------------------------

The detectable languages can be defined through the new property **DetectableLanguageScopes** with full design-time support in Visual Studio:

![Sneak peek TX Spell 5.0: Language recognition engine](https://s1-www.textcontrol.com/assets/dist/blog/2014/07/28/a/assets/property_window.webp "Sneak peek TX Spell 5.0: Language recognition engine")A collection editor can be used to add new languages to the DetectableLanguageScopes collection:

![Sneak peek TX Spell 5.0: Language recognition engine](https://s1-www.textcontrol.com/assets/dist/blog/2014/07/28/a/assets/collection_editor.webp "Sneak peek TX Spell 5.0: Language recognition engine")The following code sets the detectable languages to German and English in order to call the **DetectLanguageScopes** property with a multi-language text.

```
txSpellChecker1.DetectableLanguageScopes =
    new CultureInfo[] {
        new CultureInfo("de"),
        new CultureInfo("en"),
    };

txSpellChecker1.DetectLanguageScopes(
    "This is English text. Das ist ein deutscher Text.");

foreach (LanguageScope scope in txSpellChecker1.LanguageScopes)
{
    Console.WriteLine("Language: " + scope.Language +
        ", Start index: " +
        scope.Start.ToString() +
        ", Length: " +
        scope.Length.ToString());
}
```

The output of this code is:

```
Language: en, Start index: 0, Length: 21
Language: de, Start index: 21, Length: 28
```

This powerful feature of TX Spell .NET is another unique innovation of Text Control. Stay tuned for details of TX Spell .NET 5.0.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Service Pack 1 for TX Spell .NET 7.0 Released](https://www.textcontrol.com/blog/2019/05/28/service-pack-1-for-spell-7-released/llms.txt)
- [TX Text Control X11 Sneak Peek: Language Detection](https://www.textcontrol.com/blog/2014/08/25/tx-text-control-x11-sneak-peek-language-detection/llms.txt)
- [TX Spell .NET ActiveX Package Goes CodePlex](https://www.textcontrol.com/blog/2012/11/21/tx-spell-net-activex-package-goes-codeplex/llms.txt)
- [Converting 3rd-party User Dictionaries to TX Spell .NET](https://www.textcontrol.com/blog/2012/01/03/converting-3rd-party-user-dictionaries-to-tx-spell-net/llms.txt)
- [TX Text Control RapidSpell .NET for Windows Forms 16.0 Released](https://www.textcontrol.com/blog/2011/02/08/tx-text-control-rapidspell-net-for-windows-forms-160-released/llms.txt)
- [SP1 for TX Text Control RapidSpell .NET for Windows Forms 15.1 Released](https://www.textcontrol.com/blog/2010/03/03/sp1-for-tx-text-control-rapidspell-net-for-windows-forms-151-released/llms.txt)
- [TX Text Control RapidSpell .NET for Windows Forms 15.1 Released](https://www.textcontrol.com/blog/2009/12/14/tx-text-control-rapidspell-net-for-windows-forms-151-released/llms.txt)
- [SP2 for TX Text Control RapidSpell .NET for Windows Forms 15.0 Released](https://www.textcontrol.com/blog/2009/11/12/sp2-for-tx-text-control-rapidspell-net-for-windows-forms-150-released/llms.txt)
- [Service Packs for TX Text Control RapidSpell .NET for Windows Forms 15.0 and 14.0 Released](https://www.textcontrol.com/blog/2009/07/08/service-packs-for-tx-text-control-rapidspell-net-for-windows-forms-150-and-140-released/llms.txt)
- [Service Pack 1 for TX Text Control RapidSpell .NET for Windows Forms 14.0 Released](https://www.textcontrol.com/blog/2009/04/24/service-pack-1-for-tx-text-control-rapidspell-net-for-windows-forms-140-released/llms.txt)
- [TX Text Control RapidSpell .NET for Windows Forms Released](https://www.textcontrol.com/blog/2009/03/11/tx-text-control-rapidspell-net-for-windows-forms-released/llms.txt)
- [New Spell Version with TX Text Control 14.0 Support](https://www.textcontrol.com/blog/2008/02/21/new-spell-version-with-tx-text-control-140-support/llms.txt)
- [Spell 3.7 Beta Including TX Text Control 13.0 Support](https://www.textcontrol.com/blog/2006/10/31/spell-37-beta-including-tx-text-control-130-support/llms.txt)
- [Spell Integration with TX Text Control](https://www.textcontrol.com/blog/2005/11/24/spell-integration-with-tx-text-control/llms.txt)
- [WSpell Supports TX Text Control ActiveX 12.0](https://www.textcontrol.com/blog/2005/10/05/wspell-supports-tx-text-control-activex-120/llms.txt)
- [TX Spell .NET 11.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/04/08/tx-spell-net-11-0-sp1-is-now-available/llms.txt)
- [Announcing TX Text Control DS Server 5.0](https://www.textcontrol.com/blog/2026/03/12/announcing-tx-text-control-ds-server-5-0/llms.txt)
- [TX Text Control 34.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/02/18/tx-text-control-34-0-sp2-is-now-available/llms.txt)
- [TX Text Control 34.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/12/03/tx-text-control-34-0-sp1-is-now-available/llms.txt)
- [Introducing TX Text Control 34.0: Your Next Leap in Document Processing](https://www.textcontrol.com/blog/2025/11/10/introducing-tx-text-control-34-0-your-next-leap-in-document-processing/llms.txt)
- [PDF/UA vs. PDF/A-3a: Which Format Should You Use for Your Business Application?](https://www.textcontrol.com/blog/2025/10/24/pdf-ua-vs-pdf-a-3a-which-format-should-you-use-for-your-business-application/llms.txt)
- [Validating PDF/UA Documents in .NET C#](https://www.textcontrol.com/blog/2025/10/21/validating-pdf-ua-documents-in-dotnet-csharp/llms.txt)
- [Sneak Peek: TX Text Control 34.0 Coming November 2025](https://www.textcontrol.com/blog/2025/10/02/sneak-peek-tx-text-control-34-0-coming-november-2025/llms.txt)
- [TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/08/14/tx-text-control-33-0-sp3-is-now-available/llms.txt)
- [High-Performance Text Replacement in Large DOCX Files using C# .NET](https://www.textcontrol.com/blog/2025/07/30/high-performance-text-replacement-in-large-docx-files-using-csharp-dotnet/llms.txt)
