# TXSpell.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 Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 9.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > TXSpell.LanguageRecognitionDirectoryPath Property
- **531 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/languagerecognitiondirectorypath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/languagerecognitiondirectorypath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/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-winforms/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 `TXSpell.LanguageRecognitionDirectoryPath` to configure language recognition directory path as part of the txspell workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

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