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 to handle complex bidirectional text scenarios including mathematical expressions, nested quotations with mirroring, and explicit embedding controls. The focus is on correct usage of get_display() function and the upper_is_rtl parameter for testing purposes.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses get_display()",
"description": "Implementation correctly imports and uses the get_display() function from the bidi package as the primary text processing mechanism.",
"max_score": 20
},
{
"name": "upper_is_rtl parameter",
"description": "Implementation correctly passes the upper_is_rtl parameter to get_display() based on the use_uppercase_as_rtl argument to enable debug mode testing.",
"max_score": 20
},
{
"name": "Mathematical expressions",
"description": "Implementation correctly handles mathematical expressions with operators (+, -, *, /) and numbers in RTL context, producing the expected reordered output as specified in the test cases.",
"max_score": 20
},
{
"name": "Nested quotations",
"description": "Implementation correctly processes quoted text containing nested parentheses and punctuation in RTL context, producing properly mirrored parentheses and correct character order.",
"max_score": 20
},
{
"name": "Explicit embeddings",
"description": "Implementation correctly handles Unicode bidirectional embedding characters (LRE U+202A, RLE U+202B, PDF U+202C) to process nested directional contexts.",
"max_score": 20
}
]
}