added code for word mappings transformations