CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-python-bidi

Python Bidi layout wrapping the Rust crate unicode-bidi

Overall
score

93%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses the python-bidi package's get_base_level() function to determine text direction. The focus is on proper usage of the package's base direction detection API rather than implementing custom direction detection logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses get_base_level()",
      "description": "The implementation imports and uses get_base_level() from the bidi package (either from bidi or bidi.algorithm module) to determine text direction rather than implementing custom character analysis logic.",
      "max_score": 40
    },
    {
      "name": "Correct return mapping",
      "description": "Correctly maps get_base_level() return values to the required strings: 0 maps to 'LTR' and 1 maps to 'RTL'. The implementation should not reverse this mapping or use incorrect values.",
      "max_score": 20
    },
    {
      "name": "Batch analysis implementation",
      "description": "The analyze_batch() function uses get_base_level() to analyze each text in the input list and correctly counts LTR vs RTL texts, returning a dictionary with 'LTR' and 'RTL' keys containing the counts.",
      "max_score": 20
    },
    {
      "name": "Classification implementation",
      "description": "The classify_by_direction() function uses get_base_level() to classify each text and groups them into 'LTR' and 'RTL' lists, preserving the original order of texts within each category.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-python-bidi

tile.json