From 5dd49048bb65de3d572d43ba2f1b01435c71a35a Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 22 Jun 2025 13:46:57 +0700 Subject: done?? --- sorsyl/lib/syllabifier.mli | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sorsyl/lib/syllabifier.mli (limited to 'sorsyl/lib/syllabifier.mli') diff --git a/sorsyl/lib/syllabifier.mli b/sorsyl/lib/syllabifier.mli new file mode 100644 index 0000000..e40feeb --- /dev/null +++ b/sorsyl/lib/syllabifier.mli @@ -0,0 +1,24 @@ +(** Syllabifier module for segmenting words into syllables using sonority *) + +(** Result of syllabification *) +type syllabified = { + word : string; (** Original orthographic word *) + ipa : string; (** Original IPA transcription *) + lang : string; (** Language code *) + clean_ipa : string; (** Cleaned IPA without diacritics *) + syllables : Syllable.t list; (** List of syllables *) +} + +(** Syllabify a word given its IPA transcription + @param sonority The sonority calculator + @param ipa The IPA transcription of the word + @param word The orthographic form of the word + @param lang The language code + @return The syllabified result +*) +val syllabify : + sonority:Sonority.t -> + ipa:string -> + word:string -> + lang:string -> + syllabified \ No newline at end of file -- cgit v1.2.3