python-humanize / python-humanize/humanize

Proposal for adding more 'intword' words

Offen
#227 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
Python
Sterne
756
Forks
148
Ø Merge
6 T. 1 Std.
Gemergte PRs (30 T.)
12

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne in number.py mit der Überprüfung der vorhandenen powers- und human_powers-Definitionen und vergleiche sie anschließend mit der vorgeschlagenen Folge bis googol. Die Aufgabe ist erledigt, wenn die zusätzlichen Namen von der Integer-Humanisierung verarbeitet werden, ohne die vorhandenen Namen oder Zahlenzuordnungen zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.