Python Bidi layout wrapping the Rust crate unicode-bidi
Overall
score
93%
{
"context": "This evaluation criteria assesses how well the engineer uses the python-bidi package to implement explicit base direction control for bidirectional text. The focus is specifically on proper usage of the get_display() function with its base_dir parameter to force LTR or RTL paragraph direction.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import get_display",
"description": "Correctly imports the get_display function from the bidi package (e.g., 'from bidi import get_display')",
"max_score": 15
},
{
"name": "Use base_dir parameter",
"description": "Uses the base_dir parameter of get_display() to control text direction",
"max_score": 25
},
{
"name": "Map LTR correctly",
"description": "Correctly maps 'LTR' direction input to base_dir='L' when calling get_display()",
"max_score": 20
},
{
"name": "Map RTL correctly",
"description": "Correctly maps 'RTL' direction input to base_dir='R' when calling get_display()",
"max_score": 20
},
{
"name": "Call get_display properly",
"description": "Calls get_display() with the text as the first argument and base_dir as a keyword argument",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-python-bididocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10