Giter VIP home page Giter VIP logo

user_profile_randomizer's Introduction

User Profile Randomizer

Randomizes the gender pronoun, name (chosen from a random language family), and photo on a set of user personas.

In an effort to combat the inclusion of possible implicit biases an author might hold based upon the nationality, race, or gender of the personas that they write this library allows for more neutral user persona templates to be seeded with randomized name (chosen from a random language family), gender pronouns, and photos.

To do this user persona templates are created using placeholders for the personas name (name, full name), and gender pronouns (xey,xem,xyr,xyrs,xemself).

The randomization process used software to:

  1. choose randomly between male and female;
  2. request a random language from WikiData that has given names associated with that gender;
  3. request a random given name and family name from WikiData that match the chosen gender and languages;
  4. check to ensure that the name does not belong to any existing person on WikiData; and
  5. select a photo that corresponds to the chosen gender from a library of appropriately licensed profile photos.

Running Profile Creator

Here is a command to use the examples that are provided.

python3 profile.py -v -p examples/profiles/ \
                      -c examples/converted/ \
                      -l examples/license.csv \
                      -i examples/images/ \
                      -t examples/templates/basic.tex \
                      -o examples/output/

To convert a whole folder of profiles

python3 profile.py --verbose --profile profiles/ \
                             --converted converted_profiles/ \
                             --license_path license.csv \
                             --image_path photos/ \
                             --template_path templates/basic.tex \
                             --output_directory output/

To convert a single profile

python3 profile.py --verbose --profile profiles/001.md \
                             --converted converted_profiles/001.md \
                             --license_path license.csv \
                             --image_path photos \
                             --template_path templates/basic.tex \
                             --output_directory output/

user_profile_randomizer's People

Contributors

seamustuohy avatar

Stargazers

Mike English avatar Chris B. France avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.