Last active
January 16, 2022 11:35
-
-
Save metanomial/75ce3f809bc6885c98de92bd3dede876 to your computer and use it in GitHub Desktop.
Toki Pona Phonotactic Validation Regular Expression
This file contains 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
/^(?:(?:[k-nps]?[aeiou]|[jt][aeou]|w[aei])(?:(?:n?[klps]|[mn])[aeiou]|n?[jt][aeou]|n?w[aei])*n?)|n$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rewrote to avoid negative lookahead