Subject: | Incorrect documentation |
Date: | Wed, 16 Aug 2017 10:41:35 -0400 |
To: | bug-lingua-en-inflexion [...] rt.cpan.org |
From: | Mary Ehlers <regina.verbae [...] gmail.com> |
Module version: 0.001001
In documentation for noun->cardinal:
If the word represents a number greater than $threshold (which is set to 10
if no explicit argument is provided), then word is converted to digits
instead.
But:
noun(11)->cardinal
eleven
noun(10)->cardinal(10)
10
Appears documentation should be:
When a $threshold is provided (there is no default), if the word represents
a number greater than or equal to the $threshold, then the word is
converted to digits instead.
There is a similar mismatch in documentation/code for noun->ordinal.
Later, in the documentation for the #->w*N *option of inflect:
The w option can also be followed by one or more digits, in which case if
the count is less than or equal to that number, the appropriate English
word is interpolated instead of the number
But:
inflect('<#w5:5> <N:cat> <V:purr>')
5 cats purr
Appears documentation shoud be:
The w option can also be followed by one or more digits, in which case if
the count is less than that number, the appropriate English word is
interpolated instead of the number
And the following example should be updated to use #w21 instead of #w20:
say inflect "<#w21:$count> <N:results>";
# "six results" if $count == 6
# "twenty results" if $count == 20
# "21 results" if $count == 21
Thank you!
Mary Ehlers (ehlers@cpan.org)