The OpenD Programming Language

arsd.english

A few helper functions for manipulating English words. Extremely basic.

Members

Functions

numberToEnglish
string numberToEnglish(long number)

Given an integer, tries to write out the long form number. For example, -5 becomes "negative five".

plural
string plural(int count, string word, string pluralWord)

Given a non-one count argument, will attempt to return the plural version of word. Only handles basic cases. If count is one, simply returns the word.

Meta