xcomet_detect_errors
Detect and categorize translation errors by severity (minor, major, critical) to identify issues in translated text compared to source and optional reference translations.
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')
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) |