WALS Language Metadata #
Auto-generated from WALS v2020.4 CLDF data.
Do not edit by hand — regenerate with python3 scripts/gen_wals.py.
2660 languages referenced across generated features.
WALS language metadata.
- walsCode : String
- name : String
- iso : String
- family : String
- genus : String
Instances For
@[implicit_reducible]
Equations
- Data.WALS.instReprLanguage = { reprPrec := Data.WALS.instReprLanguage.repr }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Data.WALS.instBEqLanguage.beq x✝¹ x✝ = false
Instances For
@[implicit_reducible]
Equations
- Data.WALS.instBEqLanguage = { beq := Data.WALS.instBEqLanguage.beq }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
All languages referenced in generated WALS features (2660).
Equations
Instances For
Look up a language by WALS code.
Equations
- Data.WALS.findLanguage code = List.find? (fun (x : Data.WALS.Language) => x.walsCode == code) Data.WALS.languages
Instances For
Look up a language by ISO 639-3 code.
Returns none for empty queries: WALS marks a handful of languages with an
empty iso field, and a naive find? on "" would return one of those
entries arbitrarily.
Equations
- Data.WALS.findByIso iso = if iso.isEmpty = true then none else List.find? (fun (x : Data.WALS.Language) => x.iso == iso) Data.WALS.languages