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
- Host: GitHub
- URL: https://github.com/agricolamz/lingglosses
- Owner: agricolamz
- License: gpl-3.0
- Created: 2021-12-21T08:28:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T08:45:18.000Z (over 2 years ago)
- Last Synced: 2023-11-20T14:48:56.120Z (over 2 years ago)
- Topics: glosses, glosses-list, interlinear-gloss, language-documentation, linguistics, r, rmarkdown, typology
- Language: R
- Homepage: https://agricolamz.github.io/lingglosses/
- Size: 20.7 MB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE.md
- Codemeta: codemeta.json
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)
```
[](https://cran.r-project.org/package=lingglosses)
[](https://www.repostatus.org/#active)
[](https://CRAN.R-project.org/package=lingglosses)
[](https://zenodo.org/badge/latestdoi/440443756)
[](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")
```