Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Damian Betebenner
@dbetebenner
Starting up a Gitter room to centralize discussions on toOrdinal development
Damian Betebenner
@dbetebenner
Just added Swedish to toOrdinal :smile: Thanks to Jeff Erickson :clap:
Andrew Martin
@almartin82
bumped into inflect today
insanely ambitious -- "# REQUIRE "CLASSICAL" PLURALS (EG: "focus"->"foci", "cherub"->"cherubim")"
linking to it because it has a family of functions that do ordinal numbers -- http://stackoverflow.com/a/21668902/561698
Damian Betebenner
@dbetebenner
Wow. Does it make coffee too???
Andrew Martin
@almartin82
only english support though! so we are way ahead in that department
Damian Betebenner
@dbetebenner
It converts numbers to words, which is really cool (I was going to add that for english shortly). I need to see how they implmented that
Andrew Martin
@almartin82
like, yeah, sure, you can give me the plural of cherub. but can you tell me the ordinal value of 17 in swedish? i'll be over here waiting.
Damian Betebenner
@dbetebenner
:-)
Andrew Martin
@almartin82
in an effort to make my open source contributions as weird as is humanly possible, perhaps I will submit some irregular plurals to the development
if "sabretooth": "sabretooths", make the cut.... https://github.com/pwdyson/inflect.py/blob/master/inflect.py#L208
Damian Betebenner
@dbetebenner
:-)
Andrew Martin
@almartin82
looking at the ordinal() implementation now and number_to_words looks really involved: https://github.com/pwdyson/inflect.py/blob/master/inflect.py#L2951
anyways, thought I would pass along. hope things are well up in NH!
Damian Betebenner
@dbetebenner
I was going to try and port the PHP function at this link when I had a few hours to burn http://www.codingforums.com/php/180473-function-convert-number-ordinal-word.html
Andrew Martin
@almartin82
innnteresting. i'll keep an eye out!
incidentally, I am digging into hadley's new fwf() functions in readr: https://github.com/hadley/readr/commits/70323f7e8a9116529f454279b75fc11353c1a78a/R/read_fwf.R
have you used those, by chance?
Andrew Martin
@almartin82
Damian Betebenner
@dbetebenner
I haven’t. I use fread in data.table which is really fast too.
Jeff Erickson
@jefferickson
"graffito": "graffiti",... Really?!