Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
- mit
|
| 4 |
-
- cc-by-4.0
|
| 5 |
-
- cc-by-sa-3.0
|
| 6 |
task_categories:
|
| 7 |
- feature-extraction
|
|
|
|
|
|
|
| 8 |
tags:
|
| 9 |
- linguistics
|
| 10 |
- languages
|
|
@@ -16,94 +15,59 @@ tags:
|
|
| 16 |
- endangered-languages
|
| 17 |
- language-families
|
| 18 |
- geospatial
|
|
|
|
| 19 |
size_categories:
|
| 20 |
-
-
|
| 21 |
---
|
| 22 |
|
| 23 |
-
# Language Data
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
##
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|------|---------|------|--------|---------|
|
| 33 |
-
| `glottolog_coordinates.json` | 21,329 languoids | 3.8 MB | [Glottolog](https://glottolog.org) | CC-BY-4.0 |
|
| 34 |
-
| `glottolog_languoid.csv` | 23,740 languoids | 1.8 MB | [Glottolog](https://glottolog.org) | CC-BY-4.0 |
|
| 35 |
-
| `phoible.csv` | 105,484 phonemes | 24 MB | [PHOIBLE](https://phoible.org) | CC-BY-SA-3.0 |
|
| 36 |
-
| `wals_languages.csv` | 3,573 languages | 460 KB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 37 |
-
| `wals_values.csv` | 76,475 feature values | 4.5 MB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 38 |
-
| `wals_parameters.csv` | 192 typological features | 8 KB | [WALS](https://wals.info) | CC-BY-4.0 |
|
| 39 |
-
| `world_languages_integrated.json` | 7,130 languages | 8.1 MB | Original integration | MIT |
|
| 40 |
|
| 41 |
-
##
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
**`historical-corpora/`** -- CLMET historical English corpus metadata.
|
| 46 |
-
|
| 47 |
-
**`lemmatization/`** -- Historical lemma mappings (738 entries) for normalizing older English texts.
|
| 48 |
-
|
| 49 |
-
**`reference-corpora/`** -- Brown Corpus part-of-speech statistics.
|
| 50 |
-
|
| 51 |
-
## The Integrated Dataset
|
| 52 |
-
|
| 53 |
-
`world_languages_integrated.json` is the main original contribution. It merges four sources by ISO 639-3 code:
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
- **Language history** -- family tree positions, historical periods (198 languages)
|
| 58 |
-
- **US indigenous** -- endangerment status, revitalization efforts (13 languages)
|
| 59 |
|
| 60 |
-
|
| 61 |
import json
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
languages = json.load(f)
|
| 65 |
-
|
| 66 |
-
# Each record looks like:
|
| 67 |
-
# {
|
| 68 |
-
# "iso_639_3": "eng",
|
| 69 |
-
# "name": "English",
|
| 70 |
-
# "glottolog": { "latitude": 53.0, "longitude": -1.0, "family_name": "Indo-European", ... },
|
| 71 |
-
# "joshua_project": { "population": 379007140, "countries": [...], ... },
|
| 72 |
-
# "speaker_count": { "count": 379007140, "source": "joshua_project_aggregated", ... },
|
| 73 |
-
# "data_sources": ["joshua_project", "glottolog"]
|
| 74 |
-
# }
|
| 75 |
-
|
| 76 |
-
# Find endangered languages with coordinates
|
| 77 |
-
endangered = [
|
| 78 |
-
lang for lang in languages
|
| 79 |
-
if lang.get("glottolog", {}).get("latitude")
|
| 80 |
-
and lang.get("speaker_count", {}).get("count", float("inf")) < 1000
|
| 81 |
-
]
|
| 82 |
```
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
|
|
| 93 |
|
| 94 |
-
- **Our work** (integration, curation, language-families): MIT
|
| 95 |
-
- **Glottolog, WALS**: CC-BY-4.0
|
| 96 |
-
- **PHOIBLE**: CC-BY-SA-3.0 (share-alike)
|
| 97 |
|
| 98 |
-
##
|
| 99 |
|
| 100 |
-
- [
|
| 101 |
-
-
|
| 102 |
-
- [PHOIBLE](https://phoible.org) -- Phonological inventory database
|
| 103 |
-
- [Joshua Project](https://joshuaproject.net) -- People group demographics
|
| 104 |
|
| 105 |
## Author
|
| 106 |
|
| 107 |
**Luke Steuber**
|
| 108 |
- Website: [lukesteuber.com](https://lukesteuber.com)
|
| 109 |
- Bluesky: [@lukesteuber.com](https://bsky.app/profile/lukesteuber.com)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
|
|
|
|
|
|
|
|
|
| 3 |
task_categories:
|
| 4 |
- feature-extraction
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
tags:
|
| 8 |
- linguistics
|
| 9 |
- languages
|
|
|
|
| 15 |
- endangered-languages
|
| 16 |
- language-families
|
| 17 |
- geospatial
|
| 18 |
+
pretty_name: World Language Data Collection
|
| 19 |
size_categories:
|
| 20 |
+
- 10K<n<100K
|
| 21 |
---
|
| 22 |
|
| 23 |
+
# World Language Data Collection
|
| 24 |
|
| 25 |
+
23,740 languages: Glottolog, WALS, PHOIBLE + integrated world languages
|
| 26 |
|
| 27 |
+
Curated collection of linguistic datasets with original integration work. Includes geographic coordinates, typological features, phonological inventories, language family trees, and an integrated world languages dataset merging Glottolog, Joshua Project, and language history data. Original work under MIT; source data under CC-BY-4.0 (Glottolog, WALS) and CC-BY-SA-3.0 (PHOIBLE).
|
| 28 |
|
| 29 |
+
## Dataset Structure
|
| 30 |
|
| 31 |
+
See `demo_notebook.ipynb` for data exploration examples.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
## Usage
|
| 34 |
|
| 35 |
+
```python
|
| 36 |
+
from datasets import load_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
# Load the dataset
|
| 39 |
+
dataset = load_dataset("lukeslp/language-data")
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
# Or load from local files
|
| 42 |
import json
|
| 43 |
+
with open('data.json') as f:
|
| 44 |
+
data = json.load(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
+
## Citation
|
| 48 |
|
| 49 |
+
```bibtex
|
| 50 |
+
@dataset{language_data_2026,
|
| 51 |
+
title = {World Language Data Collection},
|
| 52 |
+
author = {Steuber, Luke},
|
| 53 |
+
year = {2026},
|
| 54 |
+
url = {https://huggingface.co/datasets/lukeslp/language-data}
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
## Distribution
|
| 60 |
|
| 61 |
+
- **GitHub**: [lukeslp/language-data](https://github.com/lukeslp/language-data)
|
| 62 |
+
- **Kaggle**: [lucassteuber/language-data](https://www.kaggle.com/datasets/lucassteuber/language-data)
|
|
|
|
|
|
|
| 63 |
|
| 64 |
## Author
|
| 65 |
|
| 66 |
**Luke Steuber**
|
| 67 |
- Website: [lukesteuber.com](https://lukesteuber.com)
|
| 68 |
- Bluesky: [@lukesteuber.com](https://bsky.app/profile/lukesteuber.com)
|
| 69 |
+
- Email: luke@lukesteuber.com
|
| 70 |
+
|
| 71 |
+
## License
|
| 72 |
+
|
| 73 |
+
MIT
|