Difference between revisions of "Template:Decliner"
From Jonathan Gardner's Latin Notebook
Line 77: | Line 77: | ||
// Break the word into syllables | // Break the word into syllables | ||
while (word) { | while (word) { | ||
− | if (s = /(?:[bcdfghijklmnpqrstxvyz]+)? | + | if (s = /(?:[bcdfghijklmnpqrstxvyz]+)?(a|e|i|o|u|v|ae|au|oe|ei|eu|ui)[bcdfghjklmnpqrstxyz]*?$/.exec(word)) { |
syllables.unshift(s[0]); | syllables.unshift(s[0]); | ||
word = word.substr(0, word.length-s[0].length) | word = word.substr(0, word.length-s[0].length) |
Revision as of 16:01, 23 February 2012