Inflects strings with various rules