# TXSpellChecker.LanguageRecognitionDirectoryPath Property

> Gets or sets the path to the language recognition folder that provides the languageRecognition.resources file which is required to detect language scopes in a text. The default value is "(Auto)" that determines the LanguageRecognition directory at the application's root folder or in the \Assembly\ subdirectory in the development machine's TX Spell .NET installation directory.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 9.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > TXSpellChecker.LanguageRecognitionDirectoryPath Property
- **541 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/languagerecognitiondirectorypath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/languagerecognitiondirectorypath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/languagerecognitiondirectorypath-property/llms-full.txt

---

### Description

Gets or sets the path to the language recognition folder that provides the `languageRecognition.resources` file which is required to detect [language scopes](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/languagescope/llms-full.txt) in a text. The default value is "(Auto)" that determines the LanguageRecognition directory at the application's root folder or in the `\Assembly\` subdirectory in the development machine's TX Spell .NET installation directory.

### Syntax

```csharp
public string LanguageRecognitionDirectoryPath { get; set; }
```

```vbnet
Public Property LanguageRecognitionDirectoryPath As String
```

### Examples

The following example uses `TXSpellChecker.LanguageRecognitionDirectoryPath` to configure language recognition directory path as part of the txspell checker workflow. The configured value is checked before the workflow continues.

```csharp
tXSpellChecker.LanguageRecognitionDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpellChecker.LanguageRecognitionDirectoryPath))
{
    Console.WriteLine($"Language Recognition Directory Path: {tXSpellChecker.LanguageRecognitionDirectoryPath}");
}
```

```vbnet
tXSpellChecker.LanguageRecognitionDirectoryPath = "document.docx"
If Not String.IsNullOrWhiteSpace(tXSpellChecker.LanguageRecognitionDirectoryPath) Then
    Console.WriteLine($"Language Recognition Directory Path: {tXSpellChecker.LanguageRecognitionDirectoryPath}")
End If
```

---

## Nearby

- **Previous:** [TXSpellChecker.Language Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/language-property/llms-full.txt)
- **Next:** [TXSpellChecker.LanguageScopes Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/languagescopes-property/llms-full.txt)
