String node new in 3.1
Text Guard
Checks a text (and an optional signature) against a rules folder before it is shown in public: word and phrase lists (whole words or stems, folded for case, diacritics, leetspeak, doubled and spaced-out letters), the letters of a Script, links, phone numbers, repeats, all capitals and an emoji whitelist. Verdict is PASS, HOLD (a moderator’s call; Pass Held lets these through when a moderator already approved them upstream), BLOCK or REFUSE. Mode Mask shows a text with its blocked words masked (l***) instead of refusing it — for subtitles and chats. Choose the rules folder in Settings; each .txt file says what it is in its first line (# action: block); without a block list nothing passes. Clean Text is the stored form to draw. Guard hands the same rules and settings to a node that checks many texts itself (Letter Post).
Inputs
| Port | Type | Default |
|---|---|---|
| TextThe text to check: a wish, a chat line, a subtitle. Empty = nothing to check (Passed off, no verdict). | string | |
| SignatureOptional second text, e.g. who sent it. Leave it empty for a plain text filter. It takes no emoji and is read by the signature lists. | string | |
| Max LengthLongest Text that passes, in characters (shorter than 2 is refused too). Match what the drawing node can show; at least 1. | int | 120 |
| Max SignatureLongest Signature that passes, in characters; at least 1. | int | 40 |
| Pass HeldOn: HOLD texts (hold lists, all capitals) pass as well — when a moderator already approved them upstream. Off: only PASS goes through. | bool | true |
| ScriptWhich letters are allowed. Latin · Baltic: Latvian, Lithuanian, Estonian. Latin: every Latin letter (ç, ñ, ø). Latin + Cyrillic: Cyrillic words are also read by the lists. Any: no character check. | int | 0 |
| ModeRefuse: a text with a blocked word is not shown. Mask Words: it is shown with the word masked (l***) — only if the rest passes; hidden or spaced-out words stay blocked. | int | 0 |
| Max EmojiHow many emoji from the emoji list a Text may carry; 0 = none. Emoji not on the list are refused (except with Script Any). | int | 5 |
| Refuse LinksOn: web addresses (www., https:, name.lv/.com…) and @handles are refused. | bool | true |
| Refuse NumbersOn: long digit runs (7+ characters of digits, spaces and dashes) are refused — phone numbers, codes. | bool | true |
| Refuse RepeatsOn: the same character 5 or more times in a row (aaaaa, !!!!!) is refused. | bool | true |
| Hold CapitalsOn: a text of 12+ letters that is more than 60 % capitals is held (HOLD) — shouting. | bool | true |
Outputs
| Port | Type |
|---|---|
| Passed | bool |
| Verdict | string |
| Reason | string |
| Clean Text | string |
| Clean Signature | string |
| Guard | structure |
| Masked | bool |
Open Text Guard in the interactive catalog →
Text Guard is one of 381 nodes in Grafit Pro.
Free download. Every feature for 7 days, no card. Then €99.99 once — or keep playing your projects as a Player.