Syllables in Portuguese follow basically the following scheme:
(C)(L)V(S)(N)(C)
where: C = consonant L = liquid (/l/ or /r/) V = vowel S = semivowel ( /j/ or /w/) N = nasal (/n/)
There are still some exceptions that need to be taken care of but, overall, it is a functioning library.