# LanguageDetectionResult

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.LanguageDetectionResult/

Struct for the results of detecting the language of plain text.

- **Full name:** `MFiles.LanguageDetectionResult`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-language"></a>`language` | `string` | 1 | The detected language specified by ISO 639-1 Language Code. |
| <a id="f-confidence"></a>`confidence` | `uint32` | 2 | The confidence of the detected language which represents a percentage. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCObjectOperations.DetectTextLanguage](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DetectTextLanguage/index.md): Detects the language of a plain text.

<a id="used-in-fields"></a>

## Used in fields

- [`DetectTextLanguageResponse.language_detection_result`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/DetectTextLanguage/index.md#response): Structure containing the language and detection confidence.
