Python compatibility wrapper for computing string edit distances and similarities using fast Levenshtein algorithms.
88
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.
Install with Tessl CLI
npx tessl i tessl/pypi-python-levenshteindocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10