- What are the rules?
- Words starting with consonants: move the leading consonant cluster to the end + 'ay' (hello → ellohay). Words starting with vowels: add 'way' (apple → appleway).
- Does it handle capitalization?
- Yes — capital letters stay on the word, not the moved suffix. 'Hello' → 'Ellohay', not 'elloHay'.
- What about punctuation?
- Preserved in place. 'Hello, world!' → 'Ellohay, orldway!' — punctuation stays attached to the transformed word.
- Is this useful for anything?
- Novelty mostly — kids' books, puzzles, and light code obfuscation. Real use cases are minimal. Fun project for learning string manipulation.