Skip to content

Flag Lists

R3d edited this page Dec 3, 2026 · 3 revisions

Flag lists

Word and phrase lists used by Woggle to flag messages in ScoutLink chat.

  • One lowercase word or phrase per line. Lines starting with # are comments.
  • Files are named <category>-<lang>.txt. Categories: swear, slur, sexual, dating, grooming, personal. Languages: no, da, sv, en.
  • Lists are kept sorted and without duplicates by a GitHub Action on push to main.
  • Woggle also reads <config dir>/flags/<same file name> on your own machine and adds those entries on top of the shared lists.
  • allow.txt holds innocent words that contain a listed substring (for example scunthorpe, assist, grass). Words in it are never flagged. A flags/allow.txt in your own config folder adds to the built-in list (from v2.0.0; older versions replaced it). A line with several words is an allowed phrase: a flag that falls entirely inside it is dropped, while the same word elsewhere is still flagged. Every list applies to every message, so this is how words that are innocent in another language are kept clean, for example fan of (English) or klockan sex (Swedish "six o'clock").

Entries may end with # meaning, a short English gloss for moderators. Append !N at the end of an entry to set its severity (1 default for swear, 2 or 3 for stronger ones; sexual/dating/personal default 2, slur/grooming 3). common-.txt lists frequent everyday words per language and lang-sample-.txt holds sample text; both are used only to guess the language of a message.

Entry syntax

  • word or a phrase: whole words, matched case-insensitively, longest phrase first.
  • word*: any word starting with word. *word: any word ending in word. At least 3 characters before/after the star, one word only.
  • re:<regex>: a regex (Rust regex syntax) run on the normalised, lowercased message. Patterns over 200 characters or too complex to compile are skipped with a warning in the log. The pattern is not lowercased, so write \d, not \D, with care. Example: re:\bhow\s+old\s+(?:are|r)\s+(?:you|u)\b # how old are you.
  • Meaning ( # ...) and severity ( !N) work the same for every kind of entry.

Normalisation

Before matching, the message is also tried with these tricks undone, and highlights still point at the original text:

  • stretched letters: faaaaen becomes faen (squashed to 1 or 2 letters, so both faen and hell can match)
  • leetspeak inside words with letters: 4=a, 3=e, 1=i, 0=o, 5 and $=s, 7=t, @=a
  • lookalike Cyrillic/Greek letters and fullwidth letters become plain ASCII, zero-width characters are dropped
  • 3 or more single letters split by single separators (f.a.e.n, f a e n, f-a-e-n) are joined

Æ, ø, å, ä and ö are kept as they are.

Language detection

The wrong-language flag compares the character trigrams of a message (at least 15 letters) with profiles built from lang-sample-<lang>.txt (plain sample text) and common-<lang>.txt. The best language must be clearly ahead of the best allowed one in the channel.

Clone this wiki locally