- Uses library: https://pypi.org/project/gender-guesser/
- Detects the gender based on the First name (given name)
- Can be used with Full names or with just First Names
- Extended with Hungarian first names (accepted from 2025-01-01)
- Hungarian names are preferred if the
PREFER_HUNGARIAN_NAMES
const is set toTrue
- Hungarian names are preferred if the
-
install a python version from Microsoft Store
-
install the following python libraries
pip install gender-guesser
pip install pandas
-
copy the file named
names.csv
to the folder where the script is- The file should only contain one column, without a header
- Each line should contain one name. The name can be the full name or just the first name (see example_input.csv).
- If full name is used, you will prompted to answer wether the name starts with the last name or the first name.
-
run the script with
python gender_detector.py
-
answer the questions prompted
-
the result is stored in
names_with_genders.csv
in the same folder -
correct the genders manually for the names that didn't match