Proposal for adding more 'intword' words

Open
#227 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start in number.py by reviewing the existing powers and human_powers definitions, then compare them with the proposed sequence through googol. Done means the additional names are handled by integer humanization without breaking the existing names or number mappings.

Written by the indexing model from the issue text.

Description

enhancement

I have created a game for my end year project and it is a idle game, which goes high up in numbers, ive found it stops huminizing after decillion.
So ive taken a look and created some more words in number.py.

Like this:

powers = [10**x for x in (3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51,
                          54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 100)]
human_powers = (
    NS_("thousand", "thousand"),          # 10^3
    NS_("million", "million"),            # 10^6
    NS_("billion", "billion"),            # 10^9
    NS_("trillion", "trillion"),          # 10^12
    NS_("quadrillion", "quadrillion"),    # 10^15
    NS_("quintillion", "quintillion"),    # 10^18
    NS_("sextillion", "sextillion"),      # 10^21
    NS_("septillion", "septillion"),      # 10^24
    NS_("octillion", "octillion"),        # 10^27
    NS_("nonillion", "nonillion"),        # 10^30
    NS_("decillion", "decillion"),        # 10^33
    NS_("undecillion", "undecillion"),    # 10^36
    NS_("duodecillion", "duodecillion"),  # 10^39
    NS_("tredecillion", "tredecillion"),  # 10^42
    NS_("quattuordecillion", "quattuordecillion"),  # 10^45
    NS_("quindecillion", "quindecillion"),         # 10^48
    NS_("sexdecillion", "sexdecillion"),           # 10^51
    NS_("septendecillion", "septendecillion"),     # 10^54
    NS_("octodecillion", "octodecillion"),         # 10^57
    NS_("novemdecillion", "novemdecillion"),       # 10^60
    NS_("vigintillion", "vigintillion"),           # 10^63
    NS_("unvigintillion", "unvigintillion"),       # 10^66
    NS_("duovigintillion", "duovigintillion"),     # 10^69
    NS_("trevigintillion", "trevigintillion"),     # 10^72
    NS_("quattuorvigintillion", "quattuorvigintillion"),  # 10^75
    NS_("quinvigintillion", "quinvigintillion"),          # 10^78
    NS_("sexvigintillion", "sexvigintillion"),            # 10^81
    NS_("septenvigintillion", "septenvigintillion"),      # 10^84
    NS_("octovigintillion", "octovigintillion"),          # 10^87
    NS_("novemvigintillion", "novemvigintillion"),        # 10^90
    NS_("trigintillion", "trigintillion"),                # 10^93
    NS_("untrigintillion", "untrigintillion"),            # 10^96
    NS_("googol", "googol"),                              # 10^100
)

I got tired after duodecillion and let chatgpt finish it all the way up to googol. (also I did not want any typos)
Now my int's are being humanized above decillion and helps me keep my GUI under control.

I think this might come in handy for many people and it is a small adjustment.
I hope this will be included in the new version.

Dominant language
Python
Stars
757
Forks
148
Avg merge
6d 1h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-humanize/humanize

All issues in python-humanize/humanize

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.