tessl install tessl/pypi-python-bidi@0.6.0Python Bidi layout wrapping the Rust crate unicode-bidi
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
85%
{
"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
}
]
}