changed synonym parser for better synonym recognition