tessl install tessl/pypi-python-levenshtein@0.27.0Python compatibility wrapper for computing string edit distances and similarities using fast Levenshtein algorithms.
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.38x
Baseline
Agent success rate without this tile
64%
Build a bidirectional string transformation system that can transform strings and reverse those transformations.
Implement a module that provides bidirectional string transformation capabilities:
Your implementation should:
The system should demonstrate bidirectional transformations:
@generates
def transform_and_reverse(source: str, target: str) -> dict:
"""
Transforms source to target, then applies inverse transformation.
Args:
source: The original string
target: The string to transform into
Returns:
A dictionary containing:
- 'forward_result': Result of transforming source to target
- 'inverse_result': Result of applying inverse transformation to target
- 'matches_source': Boolean indicating if inverse result matches source
"""
passProvides string edit distance computation and transformation operations.