Skip to content

Commit 3183888

Browse files
committed
update to Glottolog 5.2
1 parent 27485c6 commit 3183888

File tree

16 files changed

+27089
-26992
lines changed

16 files changed

+27089
-26992
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: lingtypology
22
Type: Package
33
Title: Linguistic Typology and Mapping
4-
Version: 1.1.20
5-
Depends: R (>= 3.5.0)
4+
Version: 1.1.21
5+
Depends: R (>= 4.1.0)
66
Imports:
77
leaflet,
88
leaflet.minicharts,

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
lingtypology 1.1.21
2+
- update Glottolog to v. 5.2
3+
14
lingtypology 1.1.20
25
- update Glottolog to v. 5.1
36

R/glottolog.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
#' involving genealogical affiliation, macro-area, country, iso code,
55
#' and coordinates.
66
#'
7-
#' Hammarstrom, Harald and Forkel, Robert and Haspelmath, Martin and Bank, Sebastian. 2023.
8-
#' Glottolog 5.1.
7+
#' Hammarstrom, Harald and Forkel, Robert and Haspelmath, Martin and Bank, Sebastian. 2025.
8+
#' Glottolog 5.2.
99
#' Leipzig: Max Planck Institute for Evolutionary Anthropology.
1010
#' https://doi.org/10.5281/zenodo.10804357
1111
#' (Available online at http://glottolog.org, Accessed on 2024-03-12.)
1212
#'
13-
#' @format A data frame with 26953 rows and 10 variables:
13+
#' @format A data frame with 27034 rows and 10 variables:
1414
#' \describe{
15-
#' \item{glottocode}{languoid code from Glottolog 5.1}
15+
#' \item{glottocode}{languoid code from Glottolog 5.2}
1616
#' \item{language}{name of the language}
1717
#' \item{iso}{code based on ISO 639--3 \url{https://iso639-3.sil.org/}}
1818
#' \item{level}{languoid type: dialect or language (possible values are dialect, language, family, bookkeeping, pseudo family, sign language, unclassifiable, pidgin, unattested, artificial language, speech register, mixed language)}

R/zzz.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
.onAttach <- function(libname = find.package("lingtypology"),
77
pkgname = "lingtypology") {
8-
packageStartupMessage("Based on the Glottolog v. 5.1")
8+
packageStartupMessage("Based on the Glottolog v. 5.2")
99
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.815028.svg)](https://doi.org/10.5281/zenodo.815028)
1212

1313

14-
`lingtypology` package connects R with the [Glottolog database (v. 5.1)](https://glottolog.org/) and provides additional functionality for linguistic mapping. The Glottolog database contains the catalogue of the world's languages. This package helps researchers to make linguistic maps, using philosophy of [the Cross-Linguistic Linked Data project](https://clld.org/), which uniform access to the data across publications. This package is based on [`leaflet` package](https://rstudio.github.io/leaflet/), so `lingtypology` package is a package for linguistic interactive mapping. You also might be interested in looking into some alternatives to lingtypology:
14+
`lingtypology` package connects R with the [Glottolog database (v. 5.2)](https://glottolog.org/) and provides additional functionality for linguistic mapping. The Glottolog database contains the catalogue of the world's languages. This package helps researchers to make linguistic maps, using philosophy of [the Cross-Linguistic Linked Data project](https://clld.org/), which uniform access to the data across publications. This package is based on [`leaflet` package](https://rstudio.github.io/leaflet/), so `lingtypology` package is a package for linguistic interactive mapping. You also might be interested in looking into some alternatives to lingtypology:
1515

1616
* [lingtypology](https://pypi.org/project/lingtypology/) in Python by Michael Voronov;
1717
* [glottospace](https://github.com/glottospace/glottospace) -- R package for the geospatial analysis based on Glottolog by Sietze Norder et al;

data/glottolog.RData

-58.7 KB
Binary file not shown.

database_creation/glottolog.csv

Lines changed: 27034 additions & 26953 deletions
Large diffs are not rendered by default.

docs/index.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: "[George Moroz](mailto:[email protected]), [NRU HSE Linguistic Conver
55

66
### What is `lingtypology`?
77

8-
The `lingtypology` package connects R with the [Glottolog database (v. 5.1)](https://glottolog.org/) and provides an additional functionality for linguistic typology. The Glottolog database contains a catalogue of the world's languages. This package helps researchers to make linguistic maps, using the philosophy of [the Cross-Linguistic Linked Data project](https://clld.org/), which is creating a uniform access to linguistic data across publications. This package is based on the [leaflet package](https://rstudio.github.io/leaflet/), so `lingtypology` is a package for interactive linguistic mapping. In addition, the package provides an ability to download data from typological databases such as WALS, AUTOTYP and others (see section 4). The functionality of this package intersects with
8+
The `lingtypology` package connects R with the [Glottolog database (v. 5.2)](https://glottolog.org/) and provides an additional functionality for linguistic typology. The Glottolog database contains a catalogue of the world's languages. This package helps researchers to make linguistic maps, using the philosophy of [the Cross-Linguistic Linked Data project](https://clld.org/), which is creating a uniform access to linguistic data across publications. This package is based on the [leaflet package](https://rstudio.github.io/leaflet/), so `lingtypology` is a package for interactive linguistic mapping. In addition, the package provides an ability to download data from typological databases such as WALS, AUTOTYP and others (see section 4). The functionality of this package intersects with
99

1010
- [lingtypology](https://pypi.org/project/lingtypology/) in Python by Michael Voronov;
1111
- [glottospace](https://github.com/glottospace/glottospace) -- R package for the geospatial analysis based on Glottolog by Sietze Norder et al;

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<title>lingtypology: introduction and installation</title>
1616

17-
<script src="site_libs/header-attrs-2.28/header-attrs.js"></script>
17+
<script src="site_libs/header-attrs-2.29/header-attrs.js"></script>
1818
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
1919
<meta name="viewport" content="width=device-width, initial-scale=1" />
2020
<link href="site_libs/bootstrap-3.3.5/css/lumen.min.css" rel="stylesheet" />
@@ -449,7 +449,7 @@ <h4 class="author"><a href="mailto:[email protected]">George
449449
<div id="what-is-lingtypology" class="section level3">
450450
<h3>What is <code>lingtypology</code>?</h3>
451451
<p>The <code>lingtypology</code> package connects R with the <a
452-
href="https://glottolog.org/">Glottolog database (v. 5.1)</a> and
452+
href="https://glottolog.org/">Glottolog database (v. 5.2)</a> and
453453
provides an additional functionality for linguistic typology. The
454454
Glottolog database contains a catalogue of the world’s languages. This
455455
package helps researchers to make linguistic maps, using the philosophy
@@ -492,7 +492,7 @@ <h3>1. Installation</h3>
492492
<span id="cb2-2"><a href="#cb2-2" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">&quot;ropensci/lingtypology&quot;</span>)</span></code></pre></div>
493493
<p>Load the package:</p>
494494
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" tabindex="-1"></a><span class="fu">library</span>(lingtypology)</span></code></pre></div>
495-
<pre><code>## Based on the Glottolog v. 5.1</code></pre>
495+
<pre><code>## Based on the Glottolog v. 5.2</code></pre>
496496
</div>
497497
<div id="citing-lingtyplogy" class="section level3">
498498
<h3>2. Citing <code>lingtyplogy</code></h3>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2+
// be compatible with the behavior of Pandoc < 2.8).
3+
document.addEventListener('DOMContentLoaded', function(e) {
4+
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5+
var i, h, a;
6+
for (i = 0; i < hs.length; i++) {
7+
h = hs[i];
8+
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9+
a = h.attributes;
10+
while (a.length > 0) h.removeAttribute(a[0].name);
11+
}
12+
});

0 commit comments

Comments
 (0)