javadev/moneytostr — reverse-engineered prompt

Reverse engineered prompt

Build me a simple money to words converter centered around a Java class I can drop into another project, plus a very basic demo so I can try it quickly.

It should take a money amount and return the full text version for Ukrainian, English, and Russian. I want to be able to choose the currency, choose the language, and choose whether the fractional part shows up as digits or as words. It should handle normal money inputs like 123.45 and also support passing the whole and fractional parts separately if that makes things easier.

Please make the API feel straightforward, something like creating a converter with currency, language, and pennies settings, then calling a convert method. Include sensible examples, especially for Ukrainian hryvnia, since that is the main use case. Keep it dependency light, ideally just standard Java if possible.

If there is a simple browser page or local demo runner, that would be great too. Look up current docs online if you need to.

Want more depth? Deep Reverse