Add Brett Terpstra's alias-generating function