Skip to content

Library for rendering numbers as text in their spoken forms

Notifications You must be signed in to change notification settings

rowanseymour/kubara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Kubara

This is a library for rendering numbers as text in their spoken forms. So far only it supports English, French, Kinyarwanda and Kirundi.

Thanks to Nkurunziza Ildephonse and Emmanuel Habumuremyi for helping with the Kirundi and Kinyarwanda rendering.

All code is available under GPLv3. Copyright Rowan Seymour 2013.

##Usage

First create a noun attributes object to describe the kind of noun (i.e. class number or gender):

NounClassification classification = new NounClassification(8);

Then get a renderer instance for the locale (rw, rn, en, fr):

NumberRenderer renderer = NumberRendererFactory.getRendererByLocale(new Locale("rw"));

Finally render the number as a string:

renderer.render(123, classification);

... which will return "ijana na makumyabiri na batatu"

About

Library for rendering numbers as text in their spoken forms

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages