Skip to content
Snippets Groups Projects

wordmatching algorithm

Merged Arkerthan requested to merge Arkerthan/fc-pregmod:wordMatching into pregmod-master

Adds a word matching algorithm (Aho–Corasick for those who want to know) that searches through all .tw and .js files in src/. The speed difference between running the sanityCheck with or without this algorithm is negligible. I didn't notice any difference.

The only limitation is that I can't output the line where the phrase is found, only the file. But since modern text editors have a search function that shouldn't be a problem.

To add new phrases add them as new line to devTools/spellCheckDictionary.txt.

The only thing left is to convert the content of devTools/spellCheck.txt to my format and add it to devTools/spellCheckDictionary.txt. Or maybe have two files, one for the big base dictionary and one for manually added phrases? If someone knows how to convert that automatically I would really appreciate it.

closes #748 (closed)

Edited by Arkerthan

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading