Rails Style String Inflection for Erlang

Erlang Inside - Chad DePue - September 11, 2008

Long ago when I was working on the ADO.NET framework (the first version), I made a doomed argument that strongly typed DataRows should have their strongly typed container objects pluralized.

I was roundly but jovially made fun of, and everybody had a good laugh about how hard that would be for non-english languages, and all those edge cases like geese, sheep, mices, mooses, etc. I proposed that we would have two versions of Visual Studio - regular and “Zoo Edition”.

Which is one thing I like about Rails - they just did it, and allowed for people to special case the pluralizations that they get wrong.

But how does that relate to Erlang? Luke Galea at ideaforge recently released a library for rails style ‘inflection’ in erlang which replicates the ActiveSupport functionality. Support for pluralization, singularization, tableization, and more.



Categories: Blogs  Erlang Inside