Ticket #8 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

#numwords ignores the ':and' option

Reported by: deveiant Owned by: deveiant
Priority: high Milestone: NLP Features
Component: English Version: 1.0.3
Severity: normal Keywords: numwords and option
Cc:

Description

The options passed to #numwords includes :and, which is supposed to be used to "[s]et the word and/or characters used where ’ and ’ (the default) is normally used."

Using the most recent HEAD (r88), it ignores that setting:

irb(main):001:0> 2006.numwords( :and => ' ' )
    ==> "two thousand and six"

Change History

Changed 2 years ago by deveiant

  • status changed from new to assigned

I have the testcase and the fix already. Will commit shortly.

Changed 2 years ago by ged

  • status changed from assigned to closed
  • resolution set to fixed

(In [91])

  • Fixed the ':and' setting in EN#numwords. Closes #8.
Note: See TracTickets for help on using tickets.