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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| constructional_complexity_analyzer-0.3.4.tar.gz | 10.4 kB | Without provenance | Details for constructional_complexity_analyzer-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| constructional_complexity_analyzer-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for constructional_complexity_analyzer-0.3.4-py3-none-any.whl |
Total release size: 21.2 kB
Release files / constructional_complexity_analyzer-0.3.4.tar.gz
| Download URL | constructional_complexity_analyzer-0.3.4.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbf35a9d2d6c982b739e3a7e33302c4839d919b9578099768250acd286278fd7
|
|
BLAKE2b-256 checksum How to use checksums |
0f209c61aaa1f603d2b982451e1b9173c43a136c0b09dfec457ebd4d248c31a0
|
| 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.4-py3-none-any.whl
| Download URL | constructional_complexity_analyzer-0.3.4-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f34423c3635d40b55e888d5222e2f8fcd822bf17674af6549bd09f8b6c3137d
|
|
BLAKE2b-256 checksum How to use checksums |
79fe7febc39442e757ffe17168f3f48fdc467da411d3f17d59c6328961865e44
|
| 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.4
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.