1# Copyright (C) 2017 Olga Yakovleva <yakovleva.o.v@gmail.com> 2 3# This program is free software: you can redistribute it and/or modify 4# it under the terms of the GNU Lesser General Public License as published by 5# the Free Software Foundation, either version 2.1 of the License, or 6# (at your option) any later version. 7 8# This program is distributed in the hope that it will be useful, 9# but WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11# GNU Lesser General Public License for more details. 12 13# You should have received a copy of the GNU Lesser General Public License 14# along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16define Vowel a|af|e|o|of|i|y|u|uf ; 17 18define Stop b|d|g|gh|p|t|k|kk; 19define Fricative v|z|zh|zhj|f|s|sh|shj|hh|h ; 20define Sonorant m|n|ng|l|r ; 21define Glide j|w ; 22 23define Onset [(Stop) (Fricative) (Sonorant) (Glide)] & [?+] ; 24 25define Consonant Stop | Fricative | Sonorant | Glide ; 26 27define Coda Onset.r ; 28 29define Syllabification 30Vowel @-> ... "." || _ (Consonant) Vowel ,, 31Vowel Coda @-> ... "." || _ Consonant+ Vowel ; 32 33regex Syllabification ; 34