PHP port of http://home.nerbonne.org/A-vs-An/