Repository navigation
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.txtholds innocent words that contain a listed substring (for examplescunthorpe,assist,grass). Words in it are never flagged. Aflags/allow.txtin 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 examplefan of(English) orklockan 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.
-
wordora phrase: whole words, matched case-insensitively, longest phrase first. -
word*: any word starting withword.*word: any word ending inword. At least 3 characters before/after the star, one word only. -
re:<regex>: a regex (Rustregexsyntax) 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.
Before matching, the message is also tried with these tricks undone, and highlights still point at the original text:
- stretched letters:
faaaaenbecomesfaen(squashed to 1 or 2 letters, so bothfaenandhellcan match) - leetspeak inside words with letters:
4=a,3=e,1=i,0=o,5and$=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.
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.
Woggle: moderation IRC client for ScoutLink chanops, based on Halloy · Not an official ScoutLink product (logo usage) · Found a mistake? Open an issue or edit the page.
English · Norsk · Dansk · Svenska
Woggle
Getting started
Configuration
- Inclusion/Exclusion Conditions
- Actions
- Buffer
- Channel Monitor
- Check for Update on Launch
- Commands
- Config Editor
- Context Menu
- CTCP
- Display
- File Transfer
- File Upload
- Font
- Highlights
- Keyboard
- Logs
- Metadata
- Notifications
- Pane
- Platform Specific
- Preview
- Proxy
- Runtime
- Scale factor
- Servers
- Sidebar
- Themes
- Tooltips
- Window
Guides
- Building for Flatpak
- Building for macOS
- Connect with soju
- Connect with ZNC
- TLS Troubleshooting
- Command Line
- Custom Themes
- Exec Command
- Example Server Configurations
- Monitor Users
- Multiple Servers
- Optional Features
- Portable Mode
- Pronunciation
- Reduce Noise
- Single Pane
- Storing Passwords in a File
- Storing Passwords in the System Keyring
- File Uploads
- Internal Buffers
- Unix Signals
- Text Formatting
- URL Schemes
- Flatpak Tips