Skip Menu |

This queue is for tickets about the Lingua-EN-Inflexion CPAN distribution.

Report information
The Basics
Id: 122821
Status: resolved
Priority: 0/
Queue: Lingua-EN-Inflexion

People
Owner: Nobody in particular
Requestors: regina.verbae [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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)
Subject: Re: [rt.cpan.org #122821] Incorrect documentation
Date: Wed, 16 Aug 2017 21:12:06 +0200
To: bug-Lingua-EN-Inflexion [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Mary, Thank-you so much for detecting these three annoying mis-documentations. I deeply appreciate your taking the trouble to report them and have now corrected these errors in the module's POD. The new version has just been uploaded to CPAN. All the best, Damian