Character encoding detector for automatic detection of text encodings using occurrence analysis
84
Pending
Does it follow best practices?
Impact
84%
0.98xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses the chardet package to implement synchronous file encoding detection. The focus is on proper usage of chardet's detectFileSync API and correct handling of its return values.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses detectFileSync",
"description": "Uses chardet.detectFileSync() function to detect file encodings synchronously",
"max_score": 40
},
{
"name": "Correct file paths",
"description": "Passes complete file paths (not just filenames) to detectFileSync()",
"max_score": 15
},
{
"name": "Handles null returns",
"description": "Correctly handles when detectFileSync() returns null by setting encoding to 'unknown' and status to 'fail'",
"max_score": 25
},
{
"name": "Handles successful detection",
"description": "Correctly handles when detectFileSync() returns an encoding string by setting it as the encoding value and status to 'pass'",
"max_score": 20
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10