Skip to content

Recognize syllables in words, adjusted to Slovak language rules and heuristics.

License

Notifications You must be signed in to change notification settings

simeonborko/syllabiky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syllabiky

Recognize syllables in words, adjusted to Slovak language rules and heuristics.

(It should be useful also for Czech language.)

Author: Simeon Borko, [email protected]

Date: Sep 06, 2017

Installation

pip3 install git+git://github.com/simeonborko/syllabiky.git

Usage:

# BASIC USAGE

from syllabiky.syllabiky import split_phrase
from syllabiky.DbMatcher import DbMatcher

matcher = DbMatcher()
foo = split_phrase("zirafa", matcher) # zi-ra-fa

# ADVANCED

from syllabiky.syllabiky import split_word

# returns string where words syllables are delimited by hyphen (-)
split_phrase('phrase to be processed', matcher)

# returns string where word syllables are delimited by hyphen (-)
split_word('wordtobesplit', matcher)

# returns list of Syllable objects; you can convert them to string using str(syllableObj)
split_word('wordtobesplit', matcher, True)

About

Recognize syllables in words, adjusted to Slovak language rules and heuristics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages