Hello everyone,
at the moment I’m trying to use the function “replace” in a “Java Snippet” node for the replacement of strings in column. My gender column have variety so i want to replace it with only 3 main gender. Just like this:
other = [‘A little about you’, ‘p’, ‘Nah’, ‘Enby’, ‘Trans-female’,‘something kinda male?’,‘■■■■■/she/they’,‘non-binary’,‘All’,‘fluid’, ‘Genderqueer’,‘Androgyne’, ‘Agender’,‘Guy (-ish) ^_^’, ‘male leaning androgynous’,‘Trans woman’,‘Neuter’, ‘Female (trans)’,‘■■■■■’,‘ostensibly male, unsure what that really means’,‘trans’]
male = [‘male’, ‘Male’,‘M’, ‘m’, ‘Male-ish’, ‘maile’,‘Cis Male’,‘Mal’, ‘Male (CIS)’,‘Make’,'Male ', ‘Man’, ‘msle’,‘cis male’, ‘Cis Man’,‘Malr’,‘Mail’]
female = [‘Female’, ‘female’,‘Cis Female’, ‘F’,‘f’,‘Femake’, ‘woman’,'Female ',‘cis-female/femme’,‘Female (cis)’,‘femail’,‘Woman’,‘female’]
Can anyone help me with this? Any help would be appreciated!
Thank you !