Skip to content

Enable sexual orientation attribute for CounterfactualGenerator #142

@dylanbouchard

Description

@dylanbouchard

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions