Skip to content

Commit

Permalink
parsing(taiwan): add unknown gender
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Oct 10, 2022
1 parent 29e1993 commit f4eb32e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ingestion/functions/parsing/taiwan/taiwan.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def convert_gender(raw_gender: str):
return "Female"
elif raw_gender == "第三性":
return "Non-binary/Third gender"
elif raw_gender == "性別不詳":
return None
else:
raise ValueError(f'Unhandled gender: {raw_gender}')

Expand Down

0 comments on commit f4eb32e

Please sign in to comment.