willords
v0.1.1
Published
Translator of language willords
Downloads
2
Maintainers
Readme
willords
willords is a madeup language from the course on JavaScript Fundamentals.
madeup Language Descripcion
if the word ends with "ing", we take out this three letters from the word.
if the word starts with a "vowel" we add "lar" at the end.
if the word contains 10 or more letters we have to split it in half and add "-" between them.
if the word is a palindrome, none of the prev. rules count and the return word will be the same but with capital letters every other letter.
Installation
npm install willords
Use
import willords from 'willords'
willords("Running") // Runn
willords("use") // uselar
willords("abecedario") // abece-dario
willords("sometemos") // SoMeTeMoS
Credits
[Jose W. Rivas]