Teaching Ingence your words
Only your laboratory knows what a word means in your laboratory. Ingence reads each word’s meaning from its Dictionary and from your folders’ own data, and shows you what it assumed. You correct it in three places: answers in the Dashboard, the rules, and settings. This guide gives the commands and settings for one project’s words. To take your words to other projects, see Writing a pack.
Every command here takes -p PROJECT (or --project PROJECT). Without it, most commands look for
a project in the folder you are in and the folders above it. teach collisions then reads only the
shipped Dictionary, and rule show shows only the shipped rules.
See what Ingence knows and does not know
ingence teach unknown -p PROJECT
This lists the parts of your names that don’t match anything in the Dictionary. The parts that the most items (files and folders) carry come first. A word written 40 times in one name says less than a word written once in each of 40 names. Each row gives the word and its kind of part. It also gives how many items carry the word, how often, and how it was written. The first column says which kind of “not known” it is (How Ingence works):
no_evidence(unknown): Ingence doesn’t have any evidence about this word yet. It can go in the Dictionary.conflicting: two or more meanings in the Dictionary tie on the word. Choose the right meaning, or say that the word has more than one.unexamined(not read yet): Ingence has not read this one.
ingence teach vocabulary -p PROJECT
This shows the other side: the words the Dictionary knew in your names, by kind. Kinds include format, stage, vessel and technique. Each word comes with how many items carry it. The command also says how many of the Dictionary’s meanings appear in this project’s names. It doesn’t change anything.
ingence teach shapes -p PROJECT
This shows the shapes of your names. In a shape, Ingence replaces each part of a name with its kind,
such as {DATE}_{WORD}_{WORD}. The list shows each shape once, with how many items share it. The shapes show
how your laboratory names things. They don’t hold any of your actual words, so they are safe to keep and
to share. --out FILE writes the whole list as a CSV file. If a file already has that name, add
--overwrite to replace it.
ingence teach collisions -p PROJECT
This lists spellings that have more than one meaning. For each one, it says whether Ingence reports
the tie or decides it. --decided shows only the ones where one meaning wins.
--limit N (or -n N) sets how many rows unknown, vocabulary, shapes and collisions show.
The default is 40.
Say what a word means
You answer in the Dashboard. Checks asks about the words that matter most, and Words, in Advanced, lists them all (Answering questions). Ingence saves your answer in the answer log under your name. Like every change, it waits for Re-run before it changes what you see. Dictionary, in Advanced, shows the whole Dictionary.
To keep what you taught outside the project, or to give it to another laboratory, export it as a pack. Writing a pack gives the command.
Read the rules
ingence rule show -p PROJECT
This prints the rules in force, in English, with a digest that names exactly this set of rules.
It prints each rule with the values in force, so the sentence says what Ingence will do now. With
-p, the list includes your project’s own changes. Beside each rule, it also counts the results
people confirmed, rejected and noted in the answer log.
rule show only reads. You change a rule in the Dashboard, under Rules in Advanced. Ingence
saves the change, and it waits for Re-run. -r N (or --revision N) shows the rules as they
were at revision N. Writing a rule shows how to change a rule in a file.
Settings
Settings change how Ingence runs, and the rules decide what it finds. A choice that changes what
Ingence finds belongs in the rules. The line is not sharp. For example, dictionary.years changes
how Ingence reads names, and so changes what it reads from them.
A project’s settings are in its settings.yaml. The file holds only what differs from the
defaults. Delete it, or delete a line, and Ingence goes back to the defaults. For example, these
lines set the first and the last year that a date in a name may fall in. Put them under
dictionary:, beside any other lines there:
dictionary:
years: [1990, present]
Ingence reads a number shaped like a date but outside those years as a number, such as a sample
number.
present means the year of the scan. Each scan saves the years it used, so a later scan can repeat
it with the same years. When you make a project in the Dashboard, Experiment date range sets
these years.
Settings, in Advanced, shows every setting with its purpose in plain words. It links each one to the rules that read it. A change to a setting waits for Re-run, like any other change.
Note
Edit settings.yaml between commands, and not while one runs. After you change a setting that
changes how Ingence reads names, run ingence index --rebind -p PROJECT, then ingence infer -p PROJECT.
Or press Re-run in the Dashboard.