or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation assesses how effectively the engineer uses the chardet package to implement multi-encoding analysis. The focus is on correctly utilizing the analyse() method to return all possible character encodings with confidence scores, properly handling the returned data structure, and implementing the correct workflow for file-based encoding detection.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses analyse() method",
      "description": "Correctly uses chardet's analyse() method (not detect()) to get all possible encoding matches with confidence scores",
      "max_score": 30
    },
    {
      "name": "Reads file as buffer",
      "description": "Properly reads the file into a Buffer or Uint8Array before passing to chardet, as the analyse() method requires binary data input",
      "max_score": 20
    },
    {
      "name": "Returns match array",
      "description": "Returns or processes the complete array of Match objects from analyse(), preserving the structure with name, confidence, and optional lang properties",
      "max_score": 20
    },
    {
      "name": "Preserves confidence ordering",
      "description": "Maintains the descending confidence order provided by analyse() without re-sorting or filtering in a way that disrupts the ranking",
      "max_score": 15
    },
    {
      "name": "Handles match properties",
      "description": "Correctly accesses and uses the name and confidence properties from each Match object in the results array",
      "max_score": 15
    }
  ]
}