UnicodeIUC24
ProgramShowcaseRegistrationAccommodationTravelSponsors
Unicode StandardConference BoardConference CDLast ConferencePast ConferencesNext Conference
Abstract

A Rule-Based Approach to Number Spellout

Richard Gillam - Language Analysis Systems, Inc.

Intended Audience: Software Engineers, Systems Analysts
Session Level: Intermediate

One task that comes up from time to time, especially in financial applications, is the task of rendering a numeric value in words -- for example, 123 is shown as "one hundred twenty-three". Writing a routine to do this in English is trivially easy, but generalizing it to work with ANY language is surprisingly complicated.

This task describes the novel solution to the problem used in ICU: A "programmable" number formatter based on a simple yet expressive description language that lends itself well not only to spelling out numeric values in words, but to a wide variety of other number formatting applications.

Unicode
When the world wants to talk, it speaks Unicode

UnicodeIUC24
ProgramShowcaseRegistrationAccommodationTravelSponsors
Unicode StandardConference BoardConference CDLast ConferencePast ConferencesNext Conference
International Unicode Conferences are organized by Global Meeting Services, Inc., (GMS). GMS is pleased to be able to offer the International Unicode Conferences under an exclusive license granted by the Unicode Consortium. All responsibility for conference finances and operations is borne by GMS. The independent conference board serves solely at the pleasure of GMS and is composed of volunteers active in Unicode and in international software development. All inquiries regarding International Unicode Conferences should be addressed to info@global-conference.com.

Unicode and the Unicode logo are registered trademarks of Unicode, Inc. Used with permission.

30 May 2003, Webmaster