Coder Social home page Coder Social logo

rochanachaturvedi / it-is-all-in-the-name Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 318 KB

We predict religion from personal names only.

License: GNU Affero General Public License v3.0

Jupyter Notebook 100.00%
nlp character neural-network svm lrp explainable-ai computational-social-science

it-is-all-in-the-name's Introduction

Note: This repository is now deprecated and the updated code is made available at following Harvard Dataverse link: https://doi.org/10.7910/DVN/JOEVPN

If you find the work useful, please cite our paper and the dataverse entry as follows:

@article{chaturvedi_chaturvedi_2023,
title={It’s All in the Name: A Character-Based Approach to Infer Religion},
DOI={10.1017/pan.2023.6},
journal={Political Analysis},
publisher={Cambridge University Press},
author={Chaturvedi, Rochana and Chaturvedi, Sugat},
year={2023},
pages={1–16}
}

@data{DVN/JOEVPN_2023,
author = {Chaturvedi, Rochana and Chaturvedi, Sugat},
publisher = {Harvard Dataverse},
title = {{Replication Data for: It’s All in the Name: A Character Based Approach to Infer Religion}},
year = {2023},
version = {V1},
doi = {10.7910/DVN/JOEVPN},
url = {https://doi.org/10.7910/DVN/JOEVPN}
}

It's All in the Name

This repository provides the Python 3.0 replication code for the paper It's All in the Name: A Character Based Approach To Infer Religion where we predict religion from personal names only. We train character based classifiers: logistic regression, support vector machine as well as convolutional neural network. The models can predict religion, i.e., Buddhist, Christian, Hindu, Jain, Muslim and Sikh with over 97% accuracy and provide 100% coverage.

Datasets and Models

The models are trained using Rural Economic and Demographic Survey collected by the National Council of Applied Economic Research. instructions for obtaining this dataset are available at http://adfdell.pstc.brown.edu/arisreds_data/readme.txt. We also annotate the religion of 20,000 randomly selected household heads from rural Uttar Pradesh largely comprising Hindus and Muslims. This dataset can be used to test for improvements in subsequent works.

If you are an academic researcher, please feel free to shoot us an email and we will be happy to answer any questions.

How to improve Predictions

The models can make predictions using single person's name, however the accuracy improves when we combine a person's name with the name of a relative such as parent/spouse.

License and citation

The code is licenced under GNU Affero General Public License version 3 (AGPL-3.0, see LICENCE).

Contact:

it-is-all-in-the-name's People

Contributors

rochanachaturvedi avatar sugatc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.