# TXSpellChecker.CreateSuggestions Method

> Determines suggestions for a specific incorrect word by using selected dictionaries of the DictionaryCollection at TXSpellChecker.Dictionaries and adds the results to the SuggestionCollection at TXSpellChecker.Suggestions. If no maximum number of suggestions is specified, all created suggestions are added to TXSpellChecker.Suggestions. Otherwise, only the first maximum number of suggestions are determined. The second and fourth implementation uses selected dictionaries of the TXSpell.Dictionaries DictionaryCollection and the default dictionary folder where the dictionary's language equals to the defined language parameter. Only those dictionaries are used whose Dictionary.IsGetSuggestionsEnabled properties are set to true.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **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.CreateSuggestions Method
- **1959 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/createsuggestions-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/createsuggestions-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/createsuggestions-method/llms-full.txt

---

### Description

Determines [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestion/llms-full.txt) for a specific incorrect word by using [selected dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/isgetsuggestionsenabled-property/llms-full.txt) of the [DictionaryCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionarycollection/llms-full.txt) at [TXSpellChecker.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dictionaries-property/llms-full.txt) and adds the results to the [SuggestionCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/suggestioncollection/llms-full.txt) at [TXSpellChecker.Suggestions.](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) If no maximum number of suggestions is specified, all created suggestions are added to [TXSpellChecker.Suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt). Otherwise, only the first maximum number of suggestions are determined. The second and fourth implementation uses selected [dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt) of the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dictionaries-property/llms-full.txt) [DictionaryCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionarycollection/llms-full.txt) and the default dictionary folder where the [dictionary's language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) equals to the defined language parameter. Only those [dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt) are used whose [Dictionary.IsGetSuggestionsEnabled](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/isgetsuggestionsenabled-property/llms-full.txt) properties are set to true.

### Syntax

#### CreateSuggestions(string)

Determines [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) for a specific incorrect word.

```csharp
public void CreateSuggestions(string incorrectWord);
```

```vbnet
Public Sub CreateSuggestions(incorrectWord As String)
```

| Parameter | Description |
|---|---|
| incorrectWord | Specifies the incorrect word that has to be determined for [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt). |

#### CreateSuggestions(string, CultureInfo)

Determines [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) for a specific incorrect word using selected [dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt) of the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dictionaries-property/llms-full.txt) [DictionaryCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionarycollection/llms-full.txt) and the default dictionary folder where the [dictionary's language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) equals to the defined language parameter.

```csharp
public void CreateSuggestions(string incorrectWord, CultureInfo language);
```

```vbnet
Public Sub CreateSuggestions(incorrectWord As String, language As CultureInfo)
```

| Parameter | Description |
|---|---|
| incorrectWord | Specifies the incorrect word that has to be determined for [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt). |
| language | The language that is used to create suggestions for the specified incorrect word. |

#### CreateSuggestions(string, int)

Determines a maximum number of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) for a specific incorrect word.

```csharp
public void CreateSuggestions(string incorrectWord, int max);
```

```vbnet
Public Sub CreateSuggestions(incorrectWord As String, max As Integer)
```

| Parameter | Description |
|---|---|
| incorrectWord | Specifies the incorrect word that has to be determined for [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt). |
| max | Specifies the maximum number of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) that has to be determined. |

#### CreateSuggestions(string, int, CultureInfo)

Determines a maximum number of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) for a specific incorrect word using selected [dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt) of the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dictionaries-property/llms-full.txt) [DictionaryCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionarycollection/llms-full.txt) and the default dictionary folder where the [dictionary's language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) equals to the defined language parameter.

```csharp
public void CreateSuggestions(string incorrectWord, int max, CultureInfo language);
```

```vbnet
Public Sub CreateSuggestions(incorrectWord As String, max As Integer, language As CultureInfo)
```

| Parameter | Description |
|---|---|
| incorrectWord | Specifies the incorrect word that has to be determined for [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt). |
| max | Specifies the maximum number of [suggestions](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/suggestions-property/llms-full.txt) that has to be determined. |
| language | The language that is used to create suggestions for the specified incorrect word. |

### Examples

The following example uses Create Suggestions in a focused TXSpell Checker workflow. The created object is then available to the surrounding document workflow.

```csharp
tXSpellChecker.CreateSuggestions("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"));
Console.WriteLine("TXSpell Checker is ready for use.");
```

```vbnet
tXSpellChecker.CreateSuggestions("Quarterly report", System.Globalization.CultureInfo.GetCultureInfo("en-US"))
Console.WriteLine("TXSpell Checker is ready for use.")
```

---

## Nearby

- **Previous:** [TXSpellChecker.Create Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/create-method/llms-full.txt)
- **Next:** [TXSpellChecker.CreateSynonyms Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/createsynonyms-method/llms-full.txt)
