summaryrefslogtreecommitdiff
path: root/src/lib/modifiers/mute.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-09-04 10:43:01 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-09-04 10:43:01 +0200
commit0ba049daed6e4b5d01f83d236f3178747bf849cb (patch)
tree72eeedcaa5fbe9736e2842879d62d0bf412a149f /src/lib/modifiers/mute.ml
parent0b2e63791a073000b70b4463db5d8bce88ab4d23 (diff)
Transform the letter e into eu or E
Diffstat (limited to 'src/lib/modifiers/mute.ml')
-rw-r--r--src/lib/modifiers/mute.ml10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/modifiers/mute.ml b/src/lib/modifiers/mute.ml
index 331ed1a..e23965f 100644
--- a/src/lib/modifiers/mute.ml
+++ b/src/lib/modifiers/mute.ml
@@ -1,18 +1,16 @@
open StdLabels
-module T = Sounds
-
(** Mute the last consonant if there is no voyel in the syllabus.
This modifier is only applied in the first step, and not repeated anymore.
*)let process
: 'a Sig.modifier
= fun init ->
- let (((v1, v2), c) , ending) = init in
- let is_voyel = T.is_voyel v1 && T.is_voyel v2 in
+ let ((v, c) , ending) = init in
+ let is_voyel = Sounds.is_voyel v in
match is_voyel, c with
| false, Some c ->
- let c = { c with Sig.opening = List.map ~f:T.muted c.Sig.opening } in
- (((v1, v2), Some c) , ending)
+ let c = { c with Sig.opening = List.map ~f:Sounds.muted c.Sig.opening } in
+ ((v, Some c) , ending)
| _ -> init