https://github.com/sylvainloiseau/interlinear
An R library for managing interlinear glossed text (IGT) corpora.
https://github.com/sylvainloiseau/interlinear
corpus-linguistics descriptive-linguistics dictionaries interlinear-gloss
Last synced: 4 months ago
JSON representation
An R library for managing interlinear glossed text (IGT) corpora.
- Host: GitHub
- URL: https://github.com/sylvainloiseau/interlinear
- Owner: sylvainloiseau
- License: other
- Created: 2018-02-22T10:18:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T20:02:29.000Z (over 5 years ago)
- Last Synced: 2025-12-09T21:56:31.917Z (6 months ago)
- Topics: corpus-linguistics, descriptive-linguistics, dictionaries, interlinear-gloss
- Language: R
- Homepage:
- Size: 752 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## interlineaR : utility functions for importing into R interlinearized corpora and dictionaries
**Author:** Sylvain Loiseau
**License:** [BSD_3_clause](https://opensource.org/licenses/BSD-3-Clause)
[](https://cran.r-project.org/package=interlineaR)
# Installation
```{r}
# stable version:
install.packages("interlineaR")
# development version:
devtools::install_github("sylvainloiseau/interlineaR", build_vignettes=TRUE)
```
# Usage
Import an interlinearised corpus in the EMELD XML format (as exported from SIL FieldWorks for instance):
```{r}
path <- system.file("exampleData", "tuwariInterlinear.xml", package="interlineaR")
corpus <- read.emeld(path, vernacular.languages="tww")
```
Import an interlinearised corpus in Toolbox (SIL) format:
```{r}
path <- system.file("exampleData", "tuwariToolbox.txt", package="interlineaR")
corpus <- read.toolbox(path)
```
Import a dictionary in the LIFT XML format (as exported from SIL FieldWorks for instance):
```{r}
dicpath <- system.file("exampleData", "tuwariDictionary.lift", package="interlineaR")
dictionary <- read.lift(dicpath, language.code="tww")
```
# Documentation
See the vignette interlineaR for an overview of the data model and the functions of this package.