This repository was archived by the owner on May 22, 2025. It is now read-only.
Swedish speech mutation now replaces 'the [X]' with '[X]en'/'[X]et' - #8035
Merged
Conversation
Amelia0010
commented
Mar 27, 2020
| message = replacetext(message,"a",pick("å","ä","a")) | ||
| message = replacetext(message,"bo","bjo") | ||
| message = replacetext(message,"o",pick("ö","o")) | ||
| message = replacetext(message, regex(@"([^\w]?)the (([^\W]|å|ä|ö)*)", "gmi"), pick("$1$2en", "$1$2et")) |
Contributor
Author
There was a problem hiding this comment.
The å|ä|ö is disgusting, but byond doesn't support matching against full unicode (even on 513), so it interprets them as "non-word characters", hence the need for me to check explicitly.
The check at the start of the regex is to make sure we don't fuck up [word-ending-with-the] [word].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent of your Pull Request
Continuing the number 1 danish pastime, bullying swedes
Changelog
🆑
tweak: Swede-speak mutation now replaces 'the [X]' with '[X]en'/'[X]et'
/:cl: