Skip to content

Commit

Permalink
update to glottolog 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolamz committed Oct 29, 2024
1 parent aa66b1f commit 27485c6
Show file tree
Hide file tree
Showing 17 changed files with 26,780 additions and 26,709 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: lingtypology
Type: Package
Title: Linguistic Typology and Mapping
Version: 1.1.19
Version: 1.1.20
Depends: R (>= 3.5.0)
Imports:
leaflet,
Expand Down Expand Up @@ -31,7 +31,7 @@ License: GPL (>= 2)
URL: https://CRAN.R-project.org/package=lingtypology, https://github.com/ropensci/lingtypology/, https://ropensci.github.io/lingtypology/
BugReports: https://github.com/ropensci/lingtypology/issues
LazyData: TRUE
RoxygenNote: 7.3.2
RoxygenNote: 7.3.2.9000
Encoding: UTF-8
Suggests:
knitr,
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
lingtypology 1.1.20
- update Glottolog to v. 5.1

lingtypology 1.1.19
- update `lang.gltc()` function

Expand Down
6 changes: 3 additions & 3 deletions R/glottolog.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#' and coordinates.
#'
#' Hammarstrom, Harald and Forkel, Robert and Haspelmath, Martin and Bank, Sebastian. 2023.
#' Glottolog 5.0.
#' Glottolog 5.1.
#' Leipzig: Max Planck Institute for Evolutionary Anthropology.
#' https://doi.org/10.5281/zenodo.10804357
#' (Available online at http://glottolog.org, Accessed on 2024-03-12.)
#'
#' @format A data frame with 26879 rows and 10 variables:
#' @format A data frame with 26953 rows and 10 variables:
#' \describe{
#' \item{glottocode}{languoid code from Glottolog 5.0}
#' \item{glottocode}{languoid code from Glottolog 5.1}
#' \item{language}{name of the language}
#' \item{iso}{code based on ISO 639--3 \url{https://iso639-3.sil.org/}}
#' \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)}
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

.onAttach <- function(libname = find.package("lingtypology"),
pkgname = "lingtypology") {
packageStartupMessage("Based on the Glottolog v. 5.0")
packageStartupMessage("Based on the Glottolog v. 5.1")
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.815028.svg)](https://doi.org/10.5281/zenodo.815028)


`lingtypology` package connects R with the [Glottolog database (v. 5.0)](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:
`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:

* [lingtypology](https://pypi.org/project/lingtypology/) in Python by Michael Voronov;
* [glottospace](https://github.com/glottospace/glottospace) -- R package for the geospatial analysis based on Glottolog by Sietze Norder et al;
Expand Down
27 changes: 4 additions & 23 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"codeRepository": "https://github.com/ropensci/lingtypology/",
"issueTracker": "https://github.com/ropensci/lingtypology/issues",
"license": "https://spdx.org/licenses/GPL-2.0",
"version": "1.1.15",
"version": "1.1.20",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.1 (2023-06-16)",
"runtimePlatform": "R version 4.3.3 (2024-02-29)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -101,29 +101,10 @@
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
},
{
"@type": "SoftwareApplication",
"identifier": "covr",
"name": "covr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=covr"
},
{
"@type": "SoftwareApplication",
"identifier": "MASS",
"name": "MASS",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=MASS"
"name": "MASS"
},
{
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -234,7 +215,7 @@
},
"SystemRequirements": null
},
"fileSize": "2227.264KB",
"fileSize": "2238.975KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
Binary file modified data/glottolog.RData
Binary file not shown.
53,386 changes: 26,730 additions & 26,656 deletions database_creation/glottolog.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: "[George Moroz](mailto:agricolamz@gmail.com), [NRU HSE Linguistic Conver

### What is `lingtypology`?

The `lingtypology` package connects R with the [Glottolog database (v. 5.0)](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
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

- [lingtypology](https://pypi.org/project/lingtypology/) in Python by Michael Voronov;
- [glottospace](https://github.com/glottospace/glottospace) -- R package for the geospatial analysis based on Glottolog by Sietze Norder et al;
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

<script src="site_libs/header-attrs-2.27/header-attrs.js"></script>
<script src="site_libs/header-attrs-2.28/header-attrs.js"></script>
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="site_libs/bootstrap-3.3.5/css/lumen.min.css" rel="stylesheet" />
Expand Down Expand Up @@ -69,7 +69,7 @@
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
Expand Down Expand Up @@ -449,7 +449,7 @@ <h4 class="author"><a href="mailto:agricolamz@gmail.com">George
<div id="what-is-lingtypology" class="section level3">
<h3>What is <code>lingtypology</code>?</h3>
<p>The <code>lingtypology</code> package connects R with the <a
href="https://glottolog.org/">Glottolog database (v. 5.0)</a> and
href="https://glottolog.org/">Glottolog database (v. 5.1)</a> 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
Expand Down Expand Up @@ -492,7 +492,7 @@ <h3>1. Installation</h3>
<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>
<p>Load the package:</p>
<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>
<pre><code>## Based on the Glottolog v. 5.0</code></pre>
<pre><code>## Based on the Glottolog v. 5.1</code></pre>
</div>
<div id="citing-lingtyplogy" class="section level3">
<h3>2. Citing <code>lingtyplogy</code></h3>
Expand Down
12 changes: 12 additions & 0 deletions docs/site_libs/header-attrs-2.28/header-attrs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
// be compatible with the behavior of Pandoc < 2.8).
document.addEventListener('DOMContentLoaded', function(e) {
var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
var i, h, a;
for (i = 0; i < hs.length; i++) {
h = hs[i];
if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
a = h.attributes;
while (a.length > 0) h.removeAttribute(a[0].name);
}
});
6 changes: 3 additions & 3 deletions man/glottolog.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-glottolog-database.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test_that("is.glottolog spell checker", {
skip_on_cran()
expect_that(warning(is.glottolog("Kabardia")), gives_warning())
expect_that(warning(is.glottolog("Kabardia", response = TRUE)), gives_warning("Language Kabardia is absent in our version of the Glottolog database. Did you mean Kabardian, Greater Kabardian?"))
expect_that(warning(is.glottolog("Romagnolo", response = TRUE)), gives_warning("Language Romagnolo is absent in our version of the Glottolog database. Did you mean Romagnol, Northern Romagnolo, Southern Romagnolo, Emiliano-Romagnolo?"))
expect_that(warning(is.glottolog("Romagnolo", response = TRUE)), gives_warning("Language Romagnolo is absent in our version of the Glottolog database. Did you mean Romagnol, Southern Romagnolo, Northern Romagnolo, Emiliano-Romagnolo?"))
expect_that(warning(is.glottolog(c("Kabardia", "Laz"), response = TRUE)), gives_warning("Language Kabardia is absent in our version of the Glottolog database. Did you mean Kabardian, Greater Kabardian?"))
})
8 changes: 4 additions & 4 deletions tests/testthat/test-lang-aff.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ test_that("lang.aff", {
expect_equal(lang.aff("Baltic"), c("Lithuanian", "Latvian"))
expect_equal(lang.aff(df), c(my_langs1 = "Lithuanian",
my_langs2 = "Latvian"))
expect_equal(lang.aff(c("Brythonic", "Goidelic")), c("Welsh",
expect_equal(lang.aff(c("Brythonic", "Goidelic")), c("Old Cornish",
"Welsh",
"Old-Middle Welsh",
"Old Cornish",
"Breton",
"Cornish",
"Early Irish",
"Irish",
"Scottish Gaelic",
"Manx"))
expect_equal(lang.aff(c("Brythonic", "Goidelic"), list = TRUE),
list(c("Welsh",
list(c("Old Cornish",
"Welsh",
"Old-Middle Welsh",
"Old Cornish",
"Breton",
"Cornish"),
c("Early Irish",
Expand Down
8 changes: 4 additions & 4 deletions vignettes/lingtypology_intro.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## ----eval=FALSE---------------------------------------------------------------
## ----eval=FALSE----------------------------------------------
# install.packages("lingtypology", dependencies = TRUE)

## ----eval= FALSE--------------------------------------------------------------
## ----eval= FALSE---------------------------------------------
# install.packages("remotes")
# remotes::install_github("ropensci/lingtypology")

## -----------------------------------------------------------------------------
## ------------------------------------------------------------
library(lingtypology)

## -----------------------------------------------------------------------------
## ------------------------------------------------------------
citation("lingtypology")

2 changes: 1 addition & 1 deletion vignettes/lingtypology_intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vignette: >

### What is `lingtypology`?

The `lingtypology` package connects R with the [Glottolog database (v. 5.0)](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
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

- [lingtypology](https://pypi.org/project/lingtypology/) in Python by Michael Voronov;
- [glottospace](https://github.com/glottospace/glottospace) -- R package for the geospatial analysis based on Glottolog by Sietze Norder et al;
Expand Down
11 changes: 6 additions & 5 deletions vignettes/lingtypology_intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<meta name="author" content="George Moroz" />

<meta name="date" content="2024-09-20" />
<meta name="date" content="2024-10-30" />

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

Expand Down Expand Up @@ -62,7 +62,7 @@
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
Expand Down Expand Up @@ -341,13 +341,13 @@
<h1 class="title toc-ignore"><code>lingtypology</code>: introduction and
installation</h1>
<h4 class="author">George Moroz</h4>
<h4 class="date">2024-09-20</h4>
<h4 class="date">2024-10-30</h4>



<div id="what-is-lingtypology" class="section level3">
<h3>What is <code>lingtypology</code>?</h3>
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 5.0)</a> and
<p>The <code>lingtypology</code> package connects R with the <a href="https://glottolog.org/">Glottolog database (v. 5.1)</a> 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
Expand Down Expand Up @@ -395,7 +395,8 @@ <h3>2. Citing <code>lingtyplogy</code></h3>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" tabindex="-1"></a><span class="fu">citation</span>(<span class="st">&quot;lingtypology&quot;</span>)</span></code></pre></div>
<pre><code>## To cite package &#39;lingtypology&#39; in publications use:
##
## Moroz G (2017). _lingtypology: easy mapping for Linguistic Typology_.
## Moroz G (2017). _lingtypology: easy mapping for
## Linguistic Typology_.
## &lt;https://CRAN.R-project.org/package=lingtypology&gt;.
##
## A BibTeX entry for LaTeX users is
Expand Down

0 comments on commit 27485c6

Please sign in to comment.