You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We would like to expand CounterfactualGenerator to support more attributes than just gender and race. To this end, we propose adding sexual orientation to the list of protected attributes supported.
Describe the solution you'd like
Similar to gender and race, we would like to add religion words to langfair.constants.word_lists to enable FTU checks and counterfactual prompt creation for this attribute. I suggest token-wise substitution (as we do for gender) that follows a lexicon structure similar to how substitution is handled for race (where a long list is checked for, but a narrow list is what gets substituted).