Detect Translation Errors
xcomet_detect_errorsAnalyze translations to detect and categorize errors by severity, providing detailed positions and suggestions for improvement.
Instructions
Detect and categorize errors in a translation.
This tool focuses on error detection, providing detailed information about translation errors with their severity levels and positions.
Args:
source (string): Original source text
translation (string): Translated text to analyze
reference (string, optional): Reference translation
min_severity ('minor' | 'major' | 'critical'): Minimum severity to report (default: 'minor')
response_format ('json' | 'markdown'): Output format (default: 'json')
use_gpu (boolean, optional): Use GPU for inference if available (default: false)
Returns: { "total_errors": number, "errors_by_severity": { "minor": number, "major": number, "critical": number }, "errors": [ { "text": string, "start": number, "end": number, "severity": "minor" | "major" | "critical", "suggestion": string | null } ] }
Examples:
Find critical errors before publication
Identify areas needing post-editing
Quality gate for MT output
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Original source text | |
| translation | Yes | Translated text to analyze | |
| reference | No | Optional reference translation | |
| min_severity | No | Minimum severity level to report (minor, major, critical) | minor |
| response_format | No | Output format | json |
| use_gpu | No | Use GPU for inference (faster if available). Default: false (CPU only) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total_errors | Yes | Total number of errors detected | |
| errors_by_severity | Yes | Error count by severity | |
| errors | Yes | Detailed error list |