Tests

test_all_codes_defined()

Test whether all left-most codes are defined (i.e. no stray codes from typos)

test_blacklist_chars()

Test that no blacklisted characters appear in the lexicon

test_block_attributes()

Test that listed attributes for entry blocks are well-formatted

test_brackets_balanced()

Test that all brackets and parentheses are well-balanced

test_code1_ordered()

Test whether left-most codes appear in expected order within the entries

test_entries_unique()

Test that all main- and sub-entry forms are unique

test_homophone_sequences()

Test that all homophones numbers well-sequenced across the homophonous entry forms

test_inline_codes_ok()

Test whether all expected codes (and only these) codes appear on a given line

test_latin_ok()

Test that latin/scientific name(s) lines are well-formed

test_linestarts_ok()

Test that all non-empty lines start with either a backslash or @

test_pos_strings()

Test that parts of speech values within main- and sub-entry lines are well-formatted

test_pvl_fuzzy_homed()

Test that cross-references to preverbs have a fuzzily-matching parent

test_reversals_ok()

Test that reversal mark up in reversal and gloss lines are well-formed

test_values_nonempty()

Test whether all non-block codes have some content in them

test_xrefs_homed()

Test that no cross-references are orphaned in the Warlpiri dictionary

test_xrefs_noselfref()

Test that cross-references do not contain references to themselves

Views

view_wlp_kinrev()

View Warlpiri (kin terms)-to-English finder list

view_wlp_reversals()

View English-to-Warlpiri finder list

view_wlp_scirev()

View scientific name to Warlpiri finder list

Helpers

read_wlp_lexicon()

Read in and optionally pre-process the Warlpiri lexicon file

skeletonise_df()

Discard lines whose codes do not occur in the Warlpiri dictionary skeleton grammar

add_wlp_groups()

Add grouping columns to a Warlpiri lexicon data frame

use_wlp_regex()

Use a pre-defined regular expression for the Warlpiri Dictionary

alphabetise_wlp_file()

(Re-)alphabetise the Warlpiri dictionary file