javier / Cardinales / 0.1.1

This algorithm translates an integer into its textual representation in Spanish:
Input can be of type long or String.
String inputs are sanitized to ignore whitespaces.
This algorithm uses long scale output, which is the Spanish standard number representation: "1 000 000 000" (one short scale billion) is transcripted as "mil millones", and "1 000 000 000 000" (one short scale trillion) as "un billón".
Output strings are lowercase, and the output gender can be controlled by an optional Boolean algorithm: when second argument is True, the returned number will be feminine:  ["1", true] = "una", ["1", false] = "uno". Default is masculine output.