Hongmu Notes

🈯 Keyword occurrence statistics

Count the number of occurrences of each keyword in the text according to the word list.

Instructions for use

  • Paste the text and keywords separately, click "Statistics" to get the list of "keywords = times"
  • Case is ignored by default; the number of missed keywords is recorded as 0
  • If the word list exceeds 10 items, batch processing will be prompted.

What can this tool do?

  • Count the number of times each keyword appears in the text and output "keyword=number of times"
  • Case is ignored by default, and Abc is counted together with abc
  • The vocabulary list is one per line, with a maximum of 10 entries. Empty lines are automatically skipped.
  • The results can be copied and exported as TXT, and the text and vocabulary will not be modified.

Actual measurement effect

TextVocabularyoutput
Sample paragraph about lions and coronaviruslion
COVID-19
lion=7
new crown=2
Abc abcabcabc=2
There is no such word in the textword that does not existThe word=0

Keywords that are not hit will also be output, and the number of times will be recorded as 0, which makes it easy to check whether all words are counted.

Usage tips

  • First remove the blank lines in the word list to avoid using up 10 lines in vain
  • Short words will hit the inside of long words (such as "lion" and "lion"). Please simplify the word list as needed.
  • Results can be copied or exported as TXT for easy sorting in tables

All keywords and tutorials 12

❓ FAQ

What does it count?
For a whole paragraph of text, count how many times each word appears in the keyword list one by one. The result is "keyword = number of times" one line at a time.
Is it case sensitive?
The default is no distinction (the original implementation uses global matching that ignores case), so Abc and abc are counted together.
What to do if there are special symbols in keywords
Keywords are processed according to regular expressions, and symbols such as `.` `*` `(` have special meanings; please escape these symbols first if you only want to count them as ordinary text.
Is there a limit to the number of vocabulary lists?
Yes, up to 10. If the number exceeds 10, a prompt will be given and stopped (the original implementation will prompt a pop-up window, here it is changed to a status line prompt).
Will the data be uploaded?
No. Statistics are completed locally in the browser, and neither the text nor the word list passes through the server, nor is it written to local storage.