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}
}
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.
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.
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.
The code is licenced under GNU Affero General Public License version 3 (AGPL-3.0, see LICENCE).
- Rochana Chaturvedi: rochana [dot] chaturvedi [at] gmail [dot] com
- Sugat Chaturvedi: sugat [dot] chaturvedi [at] gmail [dot] com