Realm
v0
gno.land/r/moul/x/daily/piglatindemo/v0
Render
Pig Latin
Demo of the p/moul/x/daily/piglatin library — a tiny port of the classic Pig Latin translator (the go-to beginner exercise). Pure strings/unicode, fully deterministic.
Rules
- Word starts with a vowel → append
way.apple→appleway - Word starts with consonant(s) → move the leading consonant cluster to the end, then add
ay.string→ingstray yis a consonant only as the first letter (yellow→ellowyay); otherwise a vowel (myth→ythmay).- Capitalization is preserved:
Hello→Ellohay,NASA→ASANAY. - Punctuation glued to a word stays put:
Hello,→Ellohay,.
Try it
Append a sentence to the path — spaces are fine:
- [
/hello world](/r/moul/x/daily/piglatindemo/v0:/hello world) →ellohay orldway - [
/The quick brown fox](/r/moul/x/daily/piglatindemo/v0:/The quick brown fox) →Ethay uickqay ownbray oxfay - [
/I love Gno!](/r/moul/x/daily/piglatindemo/v0:/I love Gno!) →Iway ovelay Ognay!
Examples
| Input | Pig Latin |
|---|---|
pig | igpay |
banana | ananabay |
smile | ilesmay |
eat | eatway |
yellow | ellowyay |
myth | ythmay |
Hello, | Ellohay, |
GNO | OGNAY |
Transactions
No indexed transactions for this realm yet.
Calls, deploys, and child packages in indexed history.
Call function
Calls stay disabled until vm/qfuncs lists this package. Delve only submits functions the chain publishes for gno.land/r/moul/x/daily/piglatindemo/v0.