;; Syllables with an overt halant
(" (RHJ?)?([^ ]+)(HN) "
- | (1 = *) (2 reorder) (3 = =) |)
+ | (1 = *) (2 reorder *) (3 = =) |)
;; Ordinary syllables
(" (RHJ?)?([^mubpasStA ]+)(m?u?b?p?n?a?[sS]?t?A?) "
- | (1 = *) (2 reorder) (3 = *) |)
+ | (1 = *) (2 reorder *) (3 = *) |)
("." =))
*)
(reorder
(cond
("J?(H)(R)$" (2 =) (1 =))
- ("J?(HR)(.+)$" (1 = =) (2 reorder))
- ("(.)(.*)$" (1 =) (2 reorder))))
+ ("J?(HR)" (1 = =))
+ ("." =)))
)
;; Stage 3