python-humanize / python-humanize/humanize
Proposal for adding more 'intword' words
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 756
- 派生
- 148
- 平均合并
- 6 天 1 小时
- 30 天内合并 PR
- 12
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 number.py 开始,检查现有的 powers 和 human_powers 定义,然后将它们与截至 googol 的拟议序列进行比较。完成的标准是:新增名称由整数人性化处理支持,同时不破坏现有名称或数字映射。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100