Skip to content

Kefkius/textualize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textualize

This package provides a tool for textualizing integers. In other words, a tool for getting the textual representation of integers.

For example, the textual representation of 123 is 'one hundred twenty-three'.

Usage

    import textualize
    print(textualize.textualize(5))
    # 'five' is printed

Instead of textualize(num), you can also use the convenience function i2s(num):

    import textualize
    print(textualize.i2s(5))
    # 'five' is printed

or

    from textualize import *
    print(i2s(5))
    # 'five' is printed

Examples

    >>> from textualize import i2s
    >>> i2s(5)
    'five'
    >>> i2s(104)
    'one hundred four'
    >>> i2s(8294)
    'eight thousand two hundred ninety-four'
    >>> i2s(10000)
    'ten thousand'

License

This package is released under The MIT License. See LICENSE.txt for details.

About

Tool for textualizing integers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages