Repository navigation
Remove unused is_match function - #898
Conversation
Linux library size: 0.59 MiB (-0.00%)
Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run. |
|
The pattern is one rule (a specific pattern to be matched). SpeechRules is a collection of them. SpeechRulesWithContext adds in the prefs that are used by some rules (built from all the files that are read for ClearSpeak in en, etc). Maybe it makes sense to rename it, but SpeechRules are much more than just a vector of SpeechPatterns. So SpeechRule/SpeechRules is misleading. Perhaps the bigger issue is that these are just for speech, but for braille also. So maybe "Speech" should be dropped? As for the change... I was initially sceptical that the change was correct. But I can see now that callers to |
|
even more broadly, the whole filename |
not sure what is happening here. to me it looks like this function does practically nothing.
is_trueGenerally, I have a hard time following the naming scheme in some parts of MathCAT.
As I see it, a
SpeechPatterncorresponds to what we normally call a "rule", right?Do you think we should rename it to
SpeechRule?