An open API service indexing awesome lists of open source software.

https://github.com/agricolamz/lingglosses

R package that helps to render interlinear glossed linguistic examples in html rmarkdown documents and then semi-automatically compiles the glosses list
https://github.com/agricolamz/lingglosses

glosses glosses-list interlinear-gloss language-documentation linguistics r rmarkdown typology

Last synced: about 1 year ago
JSON representation

R package that helps to render interlinear glossed linguistic examples in html rmarkdown documents and then semi-automatically compiles the glosses list

Awesome Lists containing this project

README

          

---
output:
html_document:
keep_md: yes
---

# `lingglosses`: Linguistic glosses and semi-automatic list of glosses creation

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = ">",
fig.path = "man/figures/README-",
out.width = "100%"
)
library(lingglosses)
```

[![CRAN version](https://www.r-pkg.org/badges/version/lingglosses)](https://cran.r-project.org/package=lingglosses)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![](http://cranlogs.r-pkg.org/badges/grand-total/lingglosses)](https://CRAN.R-project.org/package=lingglosses)
[![DOI](https://zenodo.org/badge/440443756.svg)](https://zenodo.org/badge/latestdoi/440443756)
[![R build status](https://github.com/agricolamz/lingglosses/workflows/R-CMD-check/badge.svg)](https://github.com/agricolamz/lingglosses/actions)

The main goal of the `lingglosses` R package is to create:

* linguistic glosses for `.html` output of `rmarkdown`;
```{r, eval = FALSE}
gloss_example(transliteration = "bur-e-ri c'in-ne-sːu",
glosses = "fly-NPST-INF know-HAB-NEG",
free_translation = "I cannot fly.",
comment = "(lit. do not know how to)")
```

```{r, include=FALSE}
write.table(x = c("NPST", "INF", "HAB", "NEG"),
file = getOption("lingglosses.glosses_list"),
row.names = FALSE, col.names = FALSE, append = TRUE)
```

* semi-automatic compiled abbreviation list.
```{r}
make_gloss_list()
```

For more details see the [html-version of the tutorial](https://agricolamz.github.io/lingglosses/).

You can also be interested in

* [ODIN project](https://odin.linguistlist.org/);
* a Python library [`Xigt`](https://github.com/xigt/xigt);
* [scription format](https://github.com/digitallinguistics/scription) and [scription2dlx Java-script library](https://github.com/digitallinguistics/scription2dlx);
* a Python library [`pyigt`](https://github.com/cldf/pyigt).

## Installation

You can install the stable version from CRAN:

```{r, eval = FALSE}
install.packages("lingglosses")
```

You can also install the development version of `lingglosses` from [GitHub](https://github.com/agricolamz/lingglosses) with:

```{r, eval=FALSE}
# install.packages("remotes")
remotes::install_github("agricolamz/lingglosses")
```

## How to cite this package

```{r}
citation("lingglosses")
```

```{r, include=FALSE}
# add this chunk to end of mycode.rmd
file.rename(from="README.md",
to="README.md")
```