Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Oct 9, 2024
1 parent cfbe197 commit 322f974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,5 @@
{
"name": "Robert Forkel"
}
],
"contributors": [
{
"name": "Robert Forkel",
"type": "DataCurator"
}
]
}
6 changes: 3 additions & 3 deletions cldfbench_barlowhandandfive.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,18 +425,18 @@ def cmd_makecldf(self, args):
# hand five -> forms
row = {k: None if v == '_' else v for k, v in row.items()}

# Compute whether a language is classified as Melanesian or not:
# Compute whether a language is classified as in Melanesia or not:
countries = gl_countries[row['Glottocode']]
if row['Glottocode'] == 'tons1239':
# Glottolog 5.0 erroneously lists Tonsawang as spoken also in the Solomons.
countries.remove('SB')
if row['Glottocode'] == 'gilb1244':
# We ignore the small, relocated Gilbertese population in the Solomons.
countries.remove('SB')
# Languages spoken in PG, SB, VU or NC - but not in ID - are considered Melanesian.
# Languages spoken in PG, SB, VU or NC - but not in ID - are considered in Melanesia.
melanesian = bool(countries.intersection({'PG', 'SB', 'VU', 'NC'}))
if not melanesian:
# Languages from ID are considered Melanesian, if they are spoken in the "Papuan"
# Languages from ID are considered in Melanesia, if they are spoken in the "Papuan"
# provinces.
p = Point(float(row['Longitude']), float(row['Latitude']))
melanesian = (any(pp.contains(p) for pp in papuan_provinces)
Expand Down

0 comments on commit 322f974

Please sign in to comment.