Skip to main content

AnthroScore

This repository contains code to compute AnthroScore. AnthroScore is introduced in the following paper, which is accepted to EACL 2024:

AnthroScore: A Computational Linguistic Measure of Anthropomorphism

Myra Cheng, Kristina Gligoric, Tiziano Piccardi, Dan Jurafsky (Stanford University)

Abstract:

Anthropomorphism, or the attribution of human-like characteristics to non-human entities, has shaped conversations about the impacts and possibilities of technology. We present ANTHROSCORE, an automatic metric of implicit anthropomorphism in language. We use a masked language model to quantify how non-human entities are implicitly framed as human by the surrounding context. We show that ANTHROSCORE corresponds with human judgments of anthropomorphism and dimensions of anthropomorphism described in social science literature. Motivated by concerns of misleading anthropomorphism in computer science discourse, we use ANTHROSCORE to analyze 15 years of research papers and downstream news articles. In research papers, we find that anthropomorphism has steadily increased over time, and that papers related to natural language processing (NLP) and language models have the most anthropomorphism. Within NLP papers, temporal increases in anthropomorphism are correlated with key neural advancements. Building upon concerns of scientific misinformation in mass media, we identify higher levels of anthropomorphism in news headlines compared to the research papers they cite. Since ANTHROSCORE is lexicon-free, it can be directly applied to a wide range of text sources.

Setup

  1. Download the repository, either
  • via pip: pip install anthroscore-eacl or
  • via Github: git clone https://github.com/myracheng/anthroscore.git; cd anthroscore; pip install .
  1. Install the spaCy model: python -m spacy download en_core_web_sm (The specific model used is https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl#sha256=86cc141f63942d4b2c5fcee06630fd6f904788d2f0ab005cce45aadb8fb73889)

Example Usage

To obtain AnthroScores for the terms "model" and "system" in abstracts from examples/acl_50.csv (a subset of ACL Anthology papers)

python get_anthroscore.py --input_file example/acl_50.csv \
    --text_column_name abstract --entities system model \
    --output_file example/results.csv --text_id_name acl_id

Release files for anthroscore-eacl 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anthroscore-eacl 0.0.2
File Size Uploaded
anthroscore-eacl-0.0.2.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anthroscore-eacl 0.0.2
File Interpreter ABI Platform
anthroscore_eacl-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / anthroscore-eacl-0.0.2.tar.gz

Download URL anthroscore-eacl-0.0.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
23db9d8efa2756d4c76d2d19c49996eaa3fdb5e0c451c6c1ee4fd18113af1046
BLAKE2b-256 checksum
How to use checksums
84643e98a3ad4d21dc30120797f59ab58c3849c87a9b4c345ac022df614113b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / anthroscore_eacl-0.0.2-py3-none-any.whl

Download URL anthroscore_eacl-0.0.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7321fea6eabc7a8e261d5549305a7a8f9c1647061637d8ce5be9414e346ddf99
BLAKE2b-256 checksum
How to use checksums
cdb2fb19b56312995e894e7ae57f4f0a8703303779def69de4a2f929afd58e23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page