plugins.lsp.servers.ltex.settings.additionalRules.enablePickyRules

Enable LanguageTool rules that are marked as picky and that are disabled by default, e.g., rules about passive voice, sentence length, etc., at the cost of more false positives.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.ltex.settings.additionalRules.languageModel

Optional path to a directory with rules of a language model with n-gram occurrence counts. Set this setting to the parent directory that contains subdirectories for languages (e.g., en).

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.lsp.servers.ltex.settings.additionalRules.motherTongue

Optional mother tongue of the user (e.g., “de-DE”).

If set, additional rules will be checked to detect false friends. Picky rules may need to be enabled in order to see an effect (see settings.additionalRules.enablePickyRules). False friend detection improves if a language model is supplied (see settings.additionalRules.languageModel).

Possible values:

  • “”: No mother tongue
  • “ar”: Arabic
  • “ast-ES”: Asturian
  • “be-BY”: Belarusian
  • “br-FR”: Breton
  • “ca-ES”: Catalan
  • “ca-ES-valencia”: Catalan (Valencian)
  • “da-DK”: Danish
  • “de”: German
  • “de-AT”: German (Austria)
  • “de-CH”: German (Swiss)
  • “de-DE”: German (Germany)
  • “de-DE-x-simple-language”: Simple German
  • “el-GR”: Greek
  • “en”: English
  • “en-AU”: English (Australian)
  • “en-CA”: English (Canadian)
  • “en-GB”: English (GB)
  • “en-NZ”: English (New Zealand)
  • “en-US”: English (US)
  • “en-ZA”: English (South African)
  • “eo”: Esperanto
  • “es”: Spanish
  • “es-AR”: Spanish (voseo)
  • “fa”: Persian
  • “fr”: French
  • “ga-IE”: Irish
  • “gl-ES”: Galician
  • “it”: Italian
  • “ja-JP”: Japanese
  • “km-KH”: Khmer
  • “nl”: Dutch
  • “nl-BE”: Dutch (Belgium)
  • “pl-PL”: Polish
  • “pt”: Portuguese
  • “pt-AO”: Portuguese (Angola preAO)
  • “pt-BR”: Portuguese (Brazil)
  • “pt-MZ”: Portuguese (Moçambique preAO)
  • “pt-PT”: Portuguese (Portugal)
  • “ro-RO”: Romanian
  • “ru-RU”: Russian
  • “sk-SK”: Slovak
  • “sl-SI”: Slovenian
  • “sv”: Swedish
  • “ta-IN”: Tamil
  • “tl-PH”: Tagalog
  • “uk-UA”: Ukrainian
  • “zh-CN”: Chinese

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.lsp.servers.ltex.settings.additionalRules.neuralNetworkModel

Optional path to a directory with rules of a pretrained neural network model.

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by:

plugins.lsp.servers.ltex.settings.additionalRules.word2VecModel

Optional path to a directory with rules of a word2vec language model.

Plugin default: ""

Type: null or string or raw lua code

Default: null

Declared by: