Language detection
In order to classify posts better, Kitsune attempts to automatically guess the language a post is written in to improve the search experience by using language-specific tokenization.
It can do that through a number of language detection backends.
The currently supported backends are:
none
: Use no detection and just return the default languagewhatlang
: Use the whatlang library (recommended)whichlang
: Use the whichlang library
Configuration
backend
In order to set the backend, choose one of the above mentioned supported backends.
It is configured like so:
default-language
This setting sets the default language Kitsune falls back onto.
If the language couldn’t be guessed for whatever reason (be it an internal failure of the backend or because the reliability of the guess wasn’t given),
this is the language Kitsune returns.
You might want to adjust this if you know the language that will be predominantly posted in on your instance to improve search quality, especially on shorter posts.
The setting accepts any valid ISO 639-1 or 639-3 code.
ISO 639-1:
ISO 639-3: