Skip to main content

moore_num

A Python library for converting numbers to Mooré (Mossi) language text and vice versa.

🚀 Try the interactive demo: num2text-playground.vercel.app

Features

  • Number to Mooré Text: Convert integers to their textual representation in Mooré.
  • Mooré Text to Number: Parse Mooré number phrases back into integers.
  • Money Mode: Special scaling factor (x5) for currency calculations common in Burkina Faso.
  • Support for Large Numbers: Handles units, tens, hundreds, thousands, millions, and billions.

Installation

pip install moore_num

Usage

Forward Conversion (Number to Text)

from moore_num import convert_to_text

# Standard conversion
print(convert_to_text(125)) 
# Output: "Koabga la pisi la a nu"

# Money mode (5 CFA = 1 unit in common counting)
print(convert_to_text(500, is_money=True))
# Output: "Koabga"

Reverse Conversion (Text to Number)

from moore_num import text_to_num

# Standard reverse
print(text_to_num("Piig la a yii"))
# Output: 12

# Money mode reverse
print(text_to_num("Koabga", is_money=True))
# Output: 500

Command Line Interface

# Forward
num2moore 125

# Reverse
num2moore "Piig la a yii" --reverse

# Money mode
num2moore 500 --money

License

MIT

Citation

If you use this software in your research, please cite it using the following BibTeX format:

@software{moore_num,
  author = {Ouily, Hamed Joseph},
  title = {moore\_num: A Python library for converting numbers to Mooré text},
  url = {https://github.com/ohamjoseph/moore_num},
  year = {2026}
}

Release files for moore-num 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moore-num 0.1.8
File Size Uploaded
moore_num-0.1.8.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moore-num 0.1.8
File Interpreter ABI Platform
moore_num-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / moore_num-0.1.8.tar.gz

Download URL moore_num-0.1.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
42a8cccab41a226f73d02b74242f6570a1ee041768822949eac9564db2e54906
BLAKE2b-256 checksum
How to use checksums
16bf55bcfd7e6d56a1bbf17925940a579a71a18774d31db7d3e529c50f0fcf03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / moore_num-0.1.8-py3-none-any.whl

Download URL moore_num-0.1.8-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fade347cecefdbbc1ddbbb12ad25e3971d1f318ba68bb2c83b6ac091378fcc69
BLAKE2b-256 checksum
How to use checksums
3b2d4a6cda6858e89e2c924c860596ad6e5dc036f2ac969873231af3640353a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page