Hongmu Notes

🎀 Keyword batch tagging

Mark the hit keywords in the text as [keywords].

Instructions for use

  • Paste the text and keywords separately and click "Process" to get the marked text.
  • Keywords are matched according to regular rules. If they contain symbols such as . * ( ), they must be escaped first.
  • If the word list exceeds 100 items, batch processing will be prompted.

Over 100 items in batches

The original implementation will refuse to process when the word list exceeds 100 entries; batch processing is a way to circumvent the restriction.

📌 What’s the easiest way to divide it into batches?

Cut the word list into batches of every 100 entries: process the first batch first, paste the results back into the text box (replacing the original text), and then continue with the second batch; because the marks are cumulative, the results of multiple batch processing are equivalent to one-time processing.

🔒 Dealing with location and privacy

The replacement is completed locally in the browser. The text and keyword list are not uploaded to the server or written to local storage. They will be cleared when the page is refreshed. The marked result is only a copy of the text, and the original text and keyword list are not affected. You can repeatedly adjust the list before processing.

📌 Marking rules

Read the keyword list line by line, skip blank lines, and then perform "global replacement" on the text: replace each hit keyword with a pair of solid square brackets. Replacements are accumulated in order, so the brackets just added to the previous keyword will remain in the text, and subsequent keywords will continue to be matched; the matching uses regular expressions, and special symbols have special meanings.

All keywords and tutorials 12

❓ FAQ

Will batching affect the results?
No, as long as each batch is replaced, the cumulative results are consistent with one-time processing.
Can the limit be raised?
No, 100 items is the upper limit of the original implementation, and this page continues to use it.
Operation sequence of batch marking
Split the word list → Batch 1 is processed and backfilled → Batch 2 is processed and backfilled → Final verification.