Installation
Build the trie
Construct a trie data structure from your rules:
The
normalizeApostrophes option treats all apostrophe-like characters (’, ’, `, ʾ, ʿ) as equivalent during matching.Complete example
Here’s a complete working example that demonstrates basic usage:Next steps
Now that you have trie-rules working, explore these key features:API Reference
Explore the complete API documentation
Advanced Matching
Learn about match types, case sensitivity, and clipping
Rule Optimization
Automatically consolidate redundant patterns
Live Demo
Try the interactive demo in your browser