4 ms·
Probably yes, in code with regex. To name a few advantages: 1. Better readability and organization. Rules and word lists can be abstracted to more of a config f
by Hippocrates 5y ago
Probably yes, in code with regex. To name a few advantages:
1. Better readability and organization. Rules and word lists can be abstracted to more of a config format.
2. possible to easily store in a database and support dynamic additions/changes to the rules and words
3. Better accountability of performance. Able to use profiling to catch any perf issues in the rules.
4. Testable with unit tests