A text file synonym catalog is the easiest and often also the fastest way to perform synonym replacement. Simply create a text file with content in a format, where the master term is succeeded with a comma-separated list of synonyms, like this:
M,Male,Man,Guy,Boy F,Female,Woman,Girl
In the above example, most typical gender tokens will be replaced with either "M" or "F".