The purpose of yinarlingi is to provide a set of convenience functions for validating Warlpiri dictionary data. Essentially, it pre-configures various functions from the tidylex and tidyverse packages with parameters specific to the Warlpiri dictionary data, so that those within the Warlpiri dictionary project can quickly run and re-run frequently used routines (e.g. data validation, derived views), and also so that these tests can be run in a Continuous Testing/Continuous Deployment environment such as GitLab pipelines:
Yinarlingi is a Warlpiri word for echidna.
You can install yinarlingi from GitHub with:
The Warlpiri dictionary consists of a large plain text file of the form (where
\me stands for main entry; see full list of codes):
\me jampaly(pa) (N) (PV): (La,Wi,Y) \dm spatial: tactile: \edm \gl sharp, pointed \egl \rv sharp \erv \eg \we Karlangu ka karri jampalypa ngulaju yiri-nyayirni. \[@@] \et The digging stick is sharp, that is very sharp pointed. \ewe \eeg \ant jampilypa, munju \eant \cf jaarn-karri-mi, lirra jampalypa \ecf \syn jalkarra, larrilpi, yiri \esyn \eme \sse jampaly-pi-nyi (V): \def xERG cause y to come to be sharp (<jampalypa>) \edef \gl sharpen, trim to ^point \egl \rv sharpen \erv \eg \we Jampaly-pungulpalu wangkinypa, yangka kuja munju-jarrija. \[@@] \et They sharpened the stone-axe which had became blunt. \ewe \we Karlangulu jampalypa-pungu. \[Tiger Jakamarra] \et They sharpened the points of the digging sticks. \ewe \eeg \csl YSL#1336, YSL#313 \ecsl \syn yiri-ma-ni \esyn \esse ...
entryBlock -> "org":? "dm":* "def":? "lat":? "gl":? "rv":? "cm":* (exampleBlock:+ | paradigmExample:+):? crossRefs
We can see here that a semantic domain line
dm must come before the gloss line
gl. So, the following data (provided in
wlp-lexicon_invalid-sequence.txt) clearly does not satisfy this requirement:
\me jampaly(pa) (N) (PV): (La,Wi,Y) \gl sharp, pointed \egl \dm spatial: tactile: \edm ...
The yinarlingi test suite uses the
test_code1_ordered() function to catch such cases (notice
FALSE on the third line):
|1 : jampaly(pa) (N) (PV): (La,Wi,Y)||1||jampaly(pa) (N) (PV): (La,Wi,Y)||me||TRUE||NA|
|3||spatial: tactile:||dm||FALSE||Unexpected code1|
|6||Karlangu ka karri jampalypa ngulaju yiri-nyayirni. [@@]||we||NA||NA|