# Read here!
### There are no slides.
Interaction moment: **Thursday 27 August 12.40-12.50 (GMT+2)**
Interaction tool: Zoom
Interaction ID / Password: see www.societaslinguistica.eu/interaction
----------
GRAMR is a tool intended to connect the three parts of the Boasian trilogy (grammar, dictionary, and texts) with an annotated corpus of spoken language.
For now, there is an online demo of the prototype using [Vamale](https://glottolog.org/resource/languoid/id/vama1243) data.
Check it out **[here](https://florianmatter.gitlab.io/gramr)**!
It offers a highly interactive combination of grammar, corpus, and dictionary.
Specifically, the following links between the three aspects exist:
1. The grammar uses interlinear examples directly from the corpus, including audio, **[EXAMPLE](http://gramr-demo.herokuapp.com/subdivisions/person)**.
2. Every morpheme in an interlinear example contains a link to its dictionary entry, **[EXAMPLE](http://gramr-demo.herokuapp.com/example/PE1-11)**.
3. Every dictionary entry of a morpheme contains all examples from the corpus where that morpheme occurs, **[EXAMPLE](http://gramr-demo.herokuapp.com/morpheme/e)**.
4. Examples always constitute part of a text. Every instance of an example contains a direct link to the context in which it was uttered, **[EXAMPLE](http://gramr-demo.herokuapp.com/example/PE1-2)**.
2. The grammar can also fetch words directly from the dictionary, optionally with audio, **[EXAMPLE](http://gramr-demo.herokuapp.com/subdivisions/cons)**.
3. Individual dictionary entries can contain references to the relevant parts of the grammar, **[EXAMPLE](http://gramr-demo.herokuapp.com/morpheme/e)**.
4. Examples are linked to speakers, **[EXAMPLE](http://gramr-demo.herokuapp.com/example/PE1-2)**.
The current workflow is to transcribe texts in ELAN and then annotate them in FLEx.
From there, the dictionary and the texts are converted to the [CLDF](http://cldf.clld.org) format, using [cldflex](https://gitlab.com/florianmatter/cldflex/).
More source formats will be supported in the future.
The text of the grammatical description is composed in a simple text file ([example](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/aspect.txt)).
It is rendered to the web-ready version with a custom markdown parser, which for now offers the following elements:
| Markdown | Result |
| ------ | ----------- |
| `obj:<string>` | *form* |
| `'<string>'` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/aspect.txt#L5))</sup> | ‘meaning’ <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/aspect))</sup>|
| `morph:<id>` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/aspect.txt#L5))</sup> | [*morpheme*]() <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/aspect))</sup>|
| `morph_a:<id>` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/cons.txt#L13))</sup> | [*morpheme*]() (with audio) <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/cons))</sup>|
| `crossref:<id>` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/phono.txt#L2))</sup> | [Section]() <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/phono))</sup>|
| `src:<id>[page]` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/phono.txt#L4))</sup> | [Source YYYY](): p <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/phono))</sup>|
| `psrc:<id>[page]` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/cons.txt#L27))</sup> | ([Source YYYY](): p) <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/cons))</sup>|
| `ex:<id>` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/person.txt#L11))</sup> | `interlinear example` <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/person))</sup>|
| `exref:<id>` <sup>([ex](https://gitlab.com/florianmatter/gramr/-/blob/master/vamale_sections/person.txt#L14))</sup> | [(XX)]() <sup>([ex](http://gramr-demo.herokuapp.com/subdivisions/person))</sup>|
Writing a grammatical description with GRAMR has multiple advantages:
1. vastly increased accessibility of corpus, resulting in
1. much easier investigation of phenomena not discussed in description
2. accountability \& reproducibility of description
3. larger engagement by the public with the topic of linguistic diversity and the loss thereof
2. increased accessibility of grammatical description, resulting in
1. faster manual evaluation by typologists
2. facilitated extraction of features
3. automatic availability of lexical data in CLDF format, making it more accessible to quantitative historical linguistics
4. enforced consistency of analysis (segmentation \& glossing in grammar and corpus is identical)
5. increased ease of navigability of corpus during writing process, resulting in stronger engagement with primary data \& more adequate analysis
For the luddites, GRAMR produces a [PDF version with identical contents](http://gramr-demo.herokuapp.com/download) in the more traditional format.
If you are interested in trying out GRAMR with your data, let me know!