How shner-elmo/flashtext2 works
flashtext2 is a small Python-facing keyword extraction and replacement library backed by a Rust keyword processor. Users configure a processor with keywords, then extract matches (optionally with spans) or replace them; the wrapper dispatches these operations to the Rust engine. The README documents Unicode tokenization, case folding, case sensitivity, and longest-match behavior. The engine implementation is not present in the supplied tree, so its internal stages are not mapped.
Main entry points: lib.rs Keyword API
Components 3
Other components
- Python caller
- Keyword API
src/lib.rs - Rust processor
Connections 2
- Python caller → Keyword API: configures and invokes
README.md - Keyword API → Rust processor: dispatches keyword operations
src/lib.rs