Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Language Data
|
| 2 |
+
|
| 3 |
+
Curated linguistic datasets covering 23,740 languages. Pulls from Glottolog, WALS, PHOIBLE, and Joshua Project, plus original integration work combining them into a single queryable format.
|
| 4 |
+
|
| 5 |
+
## Datasets
|
| 6 |
+
|
| 7 |
+
### Core Files
|
| 8 |
+
|
| 9 |
+
| File | Records | Size | Source | License |
|
| 10 |
+
|------|---------|------|--------|---------|
|
| 11 |
+
| `glottolog_coordinates.json` | 21,329 languoids | 3.8 MB | [Glottolog](https://glottolog.org) | CC-BY-4.0 |
|
| 12 |
+
| `glottolog_languoid.csv` | 23,740 languoids | 1.8 MB | [Glottolog](https://glottolog.org) | CC-BY-4.0 |
|
| 13 |
+
| `phoible.csv` | 105,484 phonemes | 24 MB | [PHOIBLE](https://phoible.org) | CC-BY-SA-3.0 |
|
| 14 |
+
| `wals_languages.csv` | 3,573 languages | 460 KB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 15 |
+
| `wals_values.csv` | 76,475 feature values | 4.5 MB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 16 |
+
| `wals_parameters.csv` | 192 typological features | 8 KB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 17 |
+
| `world_languages_integrated.json` | 7,130 languages | 8.1 MB | Original integration | MIT |
|
| 18 |
+
|
| 19 |
+
### Subdirectories
|
| 20 |
+
|
| 21 |
+
**`language-families/`** -- Language family trees, Proto-Indo-European reconstructions, speaker counts. Restructured from Glottolog with enrichment from multiple sources. 10 JSON files covering family hierarchies up to 18 levels deep.
|
| 22 |
+
|
| 23 |
+
**`historical-corpora/`** -- CLMET historical English corpus metadata.
|
| 24 |
+
|
| 25 |
+
**`lemmatization/`** -- Historical lemma mappings (738 entries) for normalizing older English texts.
|
| 26 |
+
|
| 27 |
+
**`reference-corpora/`** -- Brown Corpus part-of-speech statistics.
|
| 28 |
+
|
| 29 |
+
## The Integrated Dataset
|
| 30 |
+
|
| 31 |
+
`world_languages_integrated.json` is the main original contribution. It merges four sources by ISO 639-3 code:
|
| 32 |
+
|
| 33 |
+
- **Glottolog** -- coordinates, family classification, macroarea (7,040 languages)
|
| 34 |
+
- **Joshua Project** -- speaker populations, demographics (7,130 languages)
|
| 35 |
+
- **Language history** -- family tree positions, historical periods (198 languages)
|
| 36 |
+
- **US indigenous** -- endangerment status, revitalization efforts (13 languages)
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
import json
|
| 40 |
+
|
| 41 |
+
with open("world_languages_integrated.json") as f:
|
| 42 |
+
languages = json.load(f)
|
| 43 |
+
|
| 44 |
+
# Each record looks like:
|
| 45 |
+
# {
|
| 46 |
+
# "iso_639_3": "eng",
|
| 47 |
+
# "name": "English",
|
| 48 |
+
# "glottolog": { "latitude": 53.0, "longitude": -1.0, "family_name": "Indo-European", ... },
|
| 49 |
+
# "joshua_project": { "population": 379007140, "countries": [...], ... },
|
| 50 |
+
# "speaker_count": { "count": 379007140, "source": "joshua_project_aggregated", ... },
|
| 51 |
+
# "data_sources": ["joshua_project", "glottolog"]
|
| 52 |
+
# }
|
| 53 |
+
|
| 54 |
+
# Find endangered languages with coordinates
|
| 55 |
+
endangered = [
|
| 56 |
+
lang for lang in languages
|
| 57 |
+
if lang.get("glottolog", {}).get("latitude")
|
| 58 |
+
and lang.get("speaker_count", {}).get("count", float("inf")) < 1000
|
| 59 |
+
]
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
This dataset is also available separately on HuggingFace as [lukeslp/world-languages](https://huggingface.co/datasets/lukeslp/world-languages).
|
| 63 |
+
|
| 64 |
+
## What's Not Here
|
| 65 |
+
|
| 66 |
+
**ISO 639-3 code tables** -- SIL International doesn't allow redistribution. Get them directly from [iso639-3.sil.org](https://iso639-3.sil.org/code_tables/download_tables).
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
+
|
| 70 |
+
Multiple licenses apply. See [LICENSE.md](LICENSE.md) for details.
|
| 71 |
+
|
| 72 |
+
- **Our work** (integration, curation, language-families): MIT
|
| 73 |
+
- **Glottolog, WALS**: CC-BY-4.0
|
| 74 |
+
- **PHOIBLE**: CC-BY-SA-3.0 (share-alike)
|
| 75 |
+
|
| 76 |
+
## Sources
|
| 77 |
+
|
| 78 |
+
- [Glottolog](https://glottolog.org) -- Max Planck Institute for Evolutionary Anthropology
|
| 79 |
+
- [WALS Online](https://wals.info) -- World Atlas of Language Structures
|
| 80 |
+
- [PHOIBLE](https://phoible.org) -- Phonological inventory database
|
| 81 |
+
- [Joshua Project](https://joshuaproject.net) -- People group demographics
|
| 82 |
+
|
| 83 |
+
## Author
|
| 84 |
+
|
| 85 |
+
**Luke Steuber**
|
| 86 |
+
- Website: [lukesteuber.com](https://lukesteuber.com)
|
| 87 |
+
- Bluesky: [@lukesteuber.com](https://bsky.app/profile/lukesteuber.com)
|