Skip to main content

Constructional Complexity Analyzer


Project Description

The Constructional Complexity Analyzer (CCA) is a tool designed to measure the constructional diversity, constructional elaboration, and verbal diversity of English texts.


Features

CCA outputs various scores for the following indices:

1. Constructional Diversity

Calculates the following diversity measures based on constructions:

  • Root TTR (RTTR; Guiraud, 1960)
  • Herdan’s C (or log TTR; Chotlos, 1944; Herdan, 1960)
  • Maas’ score (Maas, 1972)
  • Moving-average type-token ratio (MATTR; Covington & McFall, 2010)
  • Hypergeometric distribution diversity index (HD-D; McCarthy & Jarvis, 2007)
  • Measure of textual lexical diversity (MTLD-Original; McCarthy, 2005; McCarthy & Jarvis, 2010)
  • Moving-average bidirectional measure of textual lexical diversity (MTLD-MA-BI; McCarthy & Jarvis, 2010)
  • Moving-average wrapped measure of textual lexical diversity (MT

2. Constructional Elaboration

Calculates the mean number of dependents (except punctuation marks) for individual constructions

3. Verb Inventory Size

Calculates log 10 [type frequency of verbs + 1 ] for individual constructions


Installation

1. Install spaCy

pip install spacy
python -m spacy download en_core_web_sm

2. Install Constructional Complexity Analyzer

pip install constructional_complexity_analyzer

3. Run the Analyzer

constructional-analysis /path/to/text_files

Citation

Hwang, H., & Kim, H. (2023). Automatic analysis of constructional diversity as a predictor of EFL students’ writing proficiency. Applied Linguistics, 44(1), 127–147. https://doi.org/10.1093/applin/amac046

Hwang, H. (in revision). Are the diversity measurement approaches proven effective for lexicon also suitable for syntax? Evaluating reliability and validity of ten constructional diversity indices. Journal of Second Language Writing.


License

This project is licensed under the
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).

Metadata

Release files for constructional-complexity-analyzer 0.3.1

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

Source distribution (sdist)

Source distribution for constructional-complexity-analyzer 0.3.1
File Size Uploaded Provenance Actions
constructional_complexity_analyzer-0.3.1.tar.gz 10.2 kB Without provenance Details for constructional_complexity_analyzer-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for constructional-complexity-analyzer 0.3.1
File Interpreter ABI Platform Actions
constructional_complexity_analyzer-0.3.1-py3-none-any.whl Python 3 none any Details for constructional_complexity_analyzer-0.3.1-py3-none-any.whl

Total release size: 20.7 kB

Release files / constructional_complexity_analyzer-0.3.1.tar.gz

Download URL constructional_complexity_analyzer-0.3.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e3cce94d48a8e85fe86ebfd6193990479fa8a48dc477ee9e41dbcbe12fee332
BLAKE2b-256 checksum
How to use checksums
d33d7850fe04dcdc46e1150d48f6fa3a79b268a7420275df5dfcf44c192e8de9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / constructional_complexity_analyzer-0.3.1-py3-none-any.whl

Download URL constructional_complexity_analyzer-0.3.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e040f09435fd7297f664798b769c35beea5f0ad636cfdc5ec130482796f9bcf
BLAKE2b-256 checksum
How to use checksums
4b7297765fbb7473b0b77f94ff61a5aea3082020a6d2825619da1749389ab469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for constructional-complexity-analyzer 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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