# Question Detection Provider Options

## **Built-in Providers**

### **Simple**

* **Availability**: Built-in, always available
* **Name**: `simple`
* **Options**:
  * `regex` (default: ''): A regular expression pattern to match questions. Leave empty to disable.
  * `interpersonal_regex` (default: ''): A regular expression pattern to match interpersonal messages that should not be considered questions. Leave empty to disable.

### **None**

* **Availability**: Built-in, always available
* **Name**: `none`
* **Options**: None, This provider disables question detection and will not classify any messages as questions.

## **Addon Providers**

### **Advanced**

* **Availability**: [Advanced Question Detection Addon](https://wiki.code-solutions.dev/serverassistantai/getting-started/addons#advanced-question-detection)
* **Name**: `advanced`
* **Options**:
  * `regex` (default: ''): A regular expression pattern to match questions. Leave empty to disable.
  * `minimum_probability` (default: 0.7): The minimum probability required for a message to be classified as a question.
  * `debug` (default: false): Enable debug mode to log question detection results and processing time to console.
  * `debug_in_game` (default: false): Enable in-game debug mode to display question detection results to players with the `serverassistantai.advanced-question-detection.debug` permission or be OP.
  * `model` (default: 'default'): The name of the question detection model to use. See the available models table below.

#### **API Key Requirement**

The Advanced Question Detection addon requires an API key to access the question detection models. To obtain an API key:

1. Join our [Discord server](https://code-solutions.dev/discord).
2. Verify your purchase in the `#verify-purchase` channel.
3. Download the Advanced Question Detection addon from `#saai-addons`, add it to the plugin list, and restart the server.
4. Run the `/apikey` command in any channel on the Discord server.
5. Enter the API key in the newly generated field in `/plugins/ServerAssistantAI/credentials.yml`:

```yaml
credentials:
  advanced_question_detection:
    api_key: ''
```

**Available Models**

The following models are available for advanced question detection. The multilingual model is the default.

<table><thead><tr><th width="143.8125">Model Name</th><th width="340.5">Languages</th><th width="139.9375">Verified</th><th>Accuracy</th></tr></thead><tbody><tr><td>default</td><td>Spanish, Korean, Italian, German, English</td><td>Verified</td><td>92.92%</td></tr><tr><td>english</td><td>English</td><td>Verified</td><td>96.64%</td></tr><tr><td>spanish</td><td>Spanish, English</td><td>Verified</td><td>98.65%</td></tr><tr><td>german</td><td>German, English</td><td>Verified</td><td>96.64%</td></tr><tr><td>italian</td><td>Italian, English</td><td>Verified</td><td>97.98%</td></tr><tr><td>korean</td><td>Korean, English</td><td>Verified</td><td>94.88%</td></tr><tr><td>french</td><td>French, English</td><td>Unverified</td><td>98.65%</td></tr><tr><td>turkish</td><td>Turkish, English</td><td>Unverified</td><td>98.32%</td></tr><tr><td>russian</td><td>Russian, English</td><td>Unverified</td><td>97.31%</td></tr><tr><td>arabic</td><td>Arabic, English</td><td>Unverified</td><td>96.47%</td></tr></tbody></table>

{% hint style="info" %}
DeepL was used as the translation service to translate our English dataset into other languages. **Verified** models have been reviewed by a native speaker who confirmed and corrected the dataset for accuracy. **Unverified** models have not yet been reviewed by a native speaker and may contain some inaccuracies.
{% endhint %}

**Example Configuration**

Example of using the French advanced question detection model in Minecraft:

```yaml
minecraft:
  question_detection:
    provider: advanced
    model: french
```

{% hint style="warning" %}
Please note that the list of addon providers above may not include all available providers, as developers can create their own custom addons using the [ServerAssistantAI API](https://wiki.code-solutions.dev/serverassistantai/developers/api).
{% endhint %}
