php

Programming in php.

Would you like a little bit of guilt with that?

So, after a serious session of web browsing, I found myself at the CakePHP web site. I had just finished reading an article on it, and wanted to check it out. So I went to the downloads section and was a little startled at first when I was greeted with a page that appeared to have no "download" links, but telling me I should donate. After about 10 seconds of frantic searching I figured out one of the donate buttons up top was "No Thanks," so I clicked and managed to find my way to the download. Not, however, without first getting just a wee shot of guilt from the developers of CakePHP.

A php Pluralizer

I want to post something, so I'll post this little piece of code I made in php. I created a little "Pluralizer" (try the pluralizer here). It's very simple; it takes a singular noun, then returns it's plural. It's based on the algorithm by Damian Conway. See his paper, An Algorithmic Approach to English Pluralization. You can download the source here. The tarball contains:

Syndicate content