GithubHelp home page GithubHelp logo

eemberda / cebuano-syllable-decoder Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

Accepts a Cebuano word and breaks it down into syllables

License: GNU General Public License v3.0

Python 100.00%
syllabification syllabify cebuano natural-language-processing nlp python bisaya sinugbuanon

cebuano-syllable-decoder's Introduction

Cebuano-Syllable-Decoder

Description

  • Cebuano Syllable Decoder / Cebuano Syllabification / Bisaya Syllabication
  • Accepts a Cebuano word and breaks it down into syllables

Installation

  • pip install cebsyldec or
  • inside the folder run python setup.py install

Requirements

  • python>=3.7

Functions

  • get_syllables(word)
    • Accepts a Cebuano word and returns the syllables of the word, and the sequence of Consonants and Vowels
    • Default Output: List of syllables and Sequence of Consonants and Vowels
    • Ex.
         syllabledecoder.get_syllables("tinabangay")   
         [['ti', 'na', 'ba', 'ngay'], ['CV', 'CV', 'CV', 'CVC']]
      
         syllabledecoder.get_syllables("mag-tinabangay") 
         [['mag', 'ti', 'na', 'ba', 'ngay'], ['CVC', 'CV', 'CV', 'CV', 'CVC']]      
      

How to Use

from cebsyldec import syllabledecoder

syllabledecoder.get_syllables("mangaon")        

Output: [['ma', 'nga', 'on'], ['CV', 'CV', 'VC']]

References

cebuano-syllable-decoder's People

Contributors

eemberda avatar uicmis avatar

Stargazers

 avatar

Watchers

 avatar

cebuano-syllable-decoder's Issues

Words with the letter "C" not decoding correctly

The most notable word is cebu
image

It doesn't encode properly as the letter c is not present in the consonant array.

Other examples:
chicharon
chada
chuya
chula

These words may be new but I think they are worth mentioning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.