or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses chardet's language-specific detection capabilities to build a multilingual text analyzer. The focus is on proper usage of the analyse() function to extract language information and confidence scores, as well as correctly interpreting and displaying the Match objects that contain language codes.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses analyse() function",
      "description": "Uses chardet's analyse() function (not just detect()) to get detailed match information including confidence scores and language codes",
      "max_score": 30
    },
    {
      "name": "Extracts language information",
      "description": "Correctly accesses and uses the 'lang' property from Match objects returned by analyse() to identify specific languages within encodings",
      "max_score": 25
    },
    {
      "name": "Filters by confidence",
      "description": "Filters analysis results based on confidence scores (e.g., showing only matches with confidence > 50) as specified in requirements",
      "max_score": 15
    },
    {
      "name": "Handles optional language",
      "description": "Properly handles cases where the 'lang' property is undefined/optional in Match objects, avoiding errors when language is not detected",
      "max_score": 15
    },
    {
      "name": "Uses Match type",
      "description": "Works with the Match interface correctly, accessing the 'confidence', 'name', and 'lang' properties appropriately",
      "max_score": 10
    },
    {
      "name": "Primary detection",
      "description": "Correctly identifies the primary (highest confidence) encoding and language from the analyse() results array",
      "max_score": 5
    }
  ]
}