<story><title>Show HN: Convert a number to an approximated text expression</title><url>https://github.com/tokenmill/numberwords</url></story><parent_chain></parent_chain><comment><author>albertzeyer</author><text>If you don&amp;#x27;t want it approximate, but exact, this is still a tricky non-trivial ambiguous problem. And this problem often comes up in text normalization for NLP task (e.g. speech recognition, or text-to-speech).&lt;p&gt;For Python, for English, there is the inflect library: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pypi.org&amp;#x2F;project&amp;#x2F;inflect&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pypi.org&amp;#x2F;project&amp;#x2F;inflect&amp;#x2F;&lt;/a&gt;</text></comment>
<story><title>Show HN: Convert a number to an approximated text expression</title><url>https://github.com/tokenmill/numberwords</url></story><parent_chain></parent_chain><comment><author>ramshorns</author><text>One other aspect of approximated numbers is whether the author wants to emphasize that the number is large or small. &amp;quot;Less than&amp;quot; and &amp;quot;almost&amp;quot; carry different connotations.</text></comment>