Datasets:
Download USL_GLOSS_SPEC.md from VoxSign/USL-Gloss: direct link, hf CLI and curl.
- Browser
- Download file 14.6 kB
-
https://huggingface.co/datasets/VoxSign/USL-Gloss/resolve/main/USL_GLOSS_SPEC.md
- Command line
-
hf download hf://datasets/VoxSign/USL-Gloss/USL_GLOSS_SPEC.md
-
curl -L -o USL_GLOSS_SPEC.md https://huggingface.co/datasets/VoxSign/USL-Gloss/resolve/main/USL_GLOSS_SPEC.md
VoxSign USL Gloss Specification v2.0
The single source of truth for the gloss convention. The corpus builder
(data/build_corpus.py), the rule engine (voxsign_usl/rules.py) and the production output
validator (voxsign_usl/postprocess.py) all implement this document. Change this first.
Every rule below was derived from the 401 hand-curated rows salvaged from the original corpus, so that regenerating the data reproduces the good examples rather than replacing them. Where the salvaged data was silent or self-contradictory, the choice is marked [DECISION] with its rationale and a config flag.
1. Surface form
| Rule | Example |
|---|---|
| Gloss is ALL CAPS, tokens space-separated | ME WANT FOOD |
| No punctuation of any kind | Where is the bathroom? → BATHROOM WHERE |
| Multi-word signs joined with a hyphen | GIVE-UP, WAKE-UP, ON-TIME, BUS-STOP |
Clauses in a multi-clause utterance separated by // |
ME TIRED // ME GO HOME |
Verified against the salvaged data: 0 of 401 rows contain a lowercase letter, and 0 contain punctuation.
2. Clause word order
[TIME] [SUBJECT] [VERB] [OBJECT / COMPLEMENT] [MODAL] [NEG] [WH]
Everything that grammatically scopes over the clause — the time frame at the front, and the modal, negation and question word at the back — sits outside the propositional core. This is the ordering the salvaged data already follows.
Worked checks against real salvaged rows:
| English | Gloss | Rule exercised |
|---|---|---|
Can you help me? |
YOU HELP ME CAN |
modal → final |
I do not like beans |
ME LIKE BEANS NOT |
negation → final, do dropped |
I have no money |
ME HAVE MONEY NOT |
no → clause-final NOT |
Where is the bathroom? |
BATHROOM WHERE |
wh → final, copula + article dropped |
What is your name? |
YOUR NAME WHAT |
wh → final |
I will come later |
LATER ME COME |
time → front, will absorbed |
Artificial intelligence can help |
ARTIFICIAL INTELLIGENCE HELP CAN |
modal → final |
When both a modal and negation are present, the order is MODAL NOT (CAN NOT, SHOULD NOT).
3. Deletions
Dropped unconditionally:
- Articles —
a,an,the - Copula
beas main verb or progressive auxiliary —is,am,are,was,were,be,been,being - Dummy auxiliary
do—do,does,did, when carrying no lexical meaning - Perfect auxiliary
have— only when auxiliary. Lexicalhaveis kept:I have money→ME HAVE MONEY will/shall— replaced by a time marker, see §6
The hotel is comfortable → HOTEL COMFORTABLE
The battery is charging → BATTERY CHARGE
I am carrying a bag → ME CARRY BAG
4. Retained function words
[DECISION — PRESERVE_FUNCTION_WORDS = True]
The original README stated "Function words (for, with, and, to, the, of, in, at) are preserved", but only 30 of 401 clean rows actually did it. That inconsistency is unlearnable: the model received contradictory targets for identical constructions. The rule is kept and applied to 100% of rows.
Retained and uppercased:
TO FOR WITH AND AT IN OF BUT BECAUSE IF OR FROM ABOUT
I am going to the hospital → ME GO TO HOSPITAL (TO kept, THE dropped)
I am waiting for a taxi → ME WAIT FOR TAXI (FOR kept, A dropped)
I study at university → ME STUDY AT UNIVERSITY
The future of AI is exciting → FUTURE OF AI EXCITING
Continue learning and growing→ CONTINUE LEARN AND GROW
Note this is a transcription convention, not a claim that each of these has a distinct USL sign. Several do not. Flagged for signer review in §10.
5. Lexical form
Verbs → base form, always
Tense and aspect are carried by time markers (§6), never by verb inflection.
is charging → CHARGE paid → PAY going → GO
comes → COME finished → FINISH studying → STUDY
Pronoun map
| English | Gloss | English | Gloss | |
|---|---|---|---|---|
| I, me | ME |
he, him | HE |
|
| my, mine | MY |
his | HIS |
|
| we, us | WE |
she, her (subj/obj) | SHE |
|
| our | OUR |
her (poss) | HER |
|
| you | YOU |
they, them | THEY |
|
| your | YOUR |
their | THEIR |
|
| it | IT |
myself/yourself/… | MYSELF/… |
I → ME in every position, including subject. This is the salvaged convention
(I want food → ME WANT FOOD) and matches standard sign-language gloss practice.
Nouns
Singular base form. Plurality is expressed lexically (MANY, LOTS, a number) rather than by
an -s suffix. Proper nouns are uppercased as-is (KAMPALA, UGANDA, JOHN).
6. Time and tense
The time expression is fronted to clause-initial position and the tense auxiliary is dropped.
I will come later → LATER ME COME
My mother comes home late everyday → EVERYDAY MY MOTHER COME HOME LATE
Tomorrow we will visit the clinic → TOMORROW WE VISIT CLINIC
Recognised time markers: NOW TODAY TOMORROW YESTERDAY LATER SOON BEFORE AFTER MORNING AFTERNOON EVENING NIGHT EVERYDAY ALWAYS NEVER SOMETIMES OFTEN NEXT-WEEK LAST-WEEK NEXT-YEAR LAST-YEAR
Two cases the salvaged data left open
[DECISION — future with no explicit time adverbial → front FUTURE]
FUTURE is already in the salvaged gloss vocabulary, so this introduces no new sign.
i will not tell you → FUTURE ME TELL YOU NOT
[DECISION — past with no explicit time adverbial → leave unmarked; MARK_PAST = False]
This matches the salvaged data exactly (I paid the bill → ME PAY BILL, I lost my job →
ME LOSE MY JOB). It does lose information, and most sign languages do mark completion. Setting
MARK_PAST = True in voxsign_usl/data/config.json fronts FINISH instead:
MARK_PAST = False I paid the bill → ME PAY BILL
MARK_PAST = True I paid the bill → FINISH ME PAY BILL
Flagged for signer review. The flag exists so the decision can be reversed without hand-editing a single corpus row.
7. Negation
NOT goes clause-final, after any modal.
I do not know → ME KNOW NOT
I do not understand → ME UNDERSTAND NOT
I have no money → ME HAVE MONEY NOT
I will not tell you → FUTURE ME TELL YOU NOT
You should not go → YOU GO SHOULD NOT
never is lexical and keeps its position: Learning never stops → LEARNING NEVER STOP.
Imperative negation drops the subject: Do not fight → FIGHT NOT.
8. Questions
Wh-questions — the wh-word moves to clause-final position.
Where do you live? → YOU LIVE WHERE
What happened? → HAPPEN WHAT
What time is it? → TIME WHAT
Where is the school? → SCHOOL WHERE
Yes/no questions — no marker token; the copula and auxiliary simply drop. In real signing this is carried by raised brows, which a flat gloss string cannot represent (§10).
Are you tired? → YOU TIRED
Are you ready? → YOU READY
Do you trust me? → YOU TRUST ME
9. Long and multi-clause input
Signers chunk long utterances; they do not sign a 30-word English sentence as one unbroken unit.
Input is segmented at sentence boundaries and at coordinating/subordinating clause boundaries,
each clause is glossed independently under §2, and the results are joined with //.
everyone keeps saying there's more to life than money but sincerely speaking one should
have money in order to navigate life with no hardships
→ EVERYONE KEEP SAY MORE TO LIFE THAN MONEY
// BUT TRUE PERSON SHOULD HAVE MONEY
// FOR NAVIGATE LIFE WITH HARDSHIP NOT
The API returns both the joined string and the clause list, so an avatar renderer can insert a prosodic pause at each boundary.
9b. Signer review of 2026-09-05 — binding changes
Reviewed by Sandra Naikambo against the engine/human disagreements in
data/salvaged.jsonl (505 rows after 25 machine-generated template rows were excluded;
the engine agreed with 403 of them, 79.8%). A native signer's reading outranks the
inferences in this document, which were derived from salvaged data and general
sign-language practice. Rulings applied, each as a flag in voxsign_usl/data/config.json:
| Ruling | Flag | Effect |
|---|---|---|
| Keep indefinite articles | KEEP_INDEFINITE_ARTICLES = true |
ME NEED A DOCTOR — overrides §4 |
| Compounds as two words | HYPHENATE_COMPOUNDS = false |
PRIMARY SCHOOL, not PRIMARY-SCHOOL |
| Keep plural nouns | KEEP_NOUN_PLURALS = true |
MY PARENTS, not MY PARENT |
| Keep verb inflection | KEEP_VERB_INFLECTION = true |
COMING, not COME — overrides §5 |
| Mark expletive present | MARK_PRESENT = true |
It is cloudy → CLOUDY NOW |
Confirmed unchanged: modals kept under negation, and the subject pronoun kept in YOU WELCOME. Word order was not ruled on — the reviewer abstained, correctly: 25 of the
36 rows in that group were legacy template rows (She does not cook ticket) whose gloss
encodes a generator's output, not a person's judgement.
Two rulings conflict with each other. The reviewer's general answers and two of her specific rows disagree:
| Row | Her gloss | What the general ruling produces |
|---|---|---|
It is raining |
RAIN NOW |
RAINING NOW (keep verb inflection) |
Install the application |
INSTALL APPLICATION |
INSTALL THE APPLICATION (keep articles) |
RAINING NOW was adopted on 2026-09-05 — a project decision by the maintainer, not a
signer ruling. It resolves the conflict in favour of the general rule, on the reasoning
that a convention applied consistently is worth more than a single row. That reasoning has
not been checked by a signer, and the reviewer wrote the opposite for this exact sentence,
so it is flagged for the next review rather than treated as settled. INSTALL THE APPLICATION follows the same logic and carries the same caveat.
Recording the distinction matters: everything else in this section carries a native signer's authority, and these two lines do not.
Consequence for evaluation. data/gold/gold_test.jsonl was hand-authored to this
document before the review, so it measures the superseded convention: the engine scores
49.89 BLEU / 27.6% exact against it, down from 93.69 / 92.9%, while still passing
validation on 100% of rows with 0% hallucination.
data/gold/gold_test_v2.jsonl (scripts/reauthor_gold.py) is the current reference. It is
the same 308 targets with only the changed morphology applied — compounds split, plurals and
verb inflection restored from each source's own wording, trailing NOW on expletive present.
Human judgements about order, segmentation and word choice are untouched, and the rule
engine was never run over it: a reference produced by the system under test measures only
how well that system imitates itself. Against v2 the engine scores 77.25 BLEU / 59.4%
exact strict, 92.66 / 89.3% article-insensitive — within a point of the pre-review 93.69 /
92.9%, which is the engine confirmed not to have regressed.
HYPHENATE_COMPOUNDS covers time markers too (LAST-YEAR → LAST YEAR), not only the
lexical compounds the review cited. Hyphens arriving from the English itself (E-MAIL,
X-RAY) are left alone — those are the source's orthography, not a gloss compound.
The article ruling covers the indefinite article only
All 7 rows behind "article retention" are A or AN — I need a doctor, take a
picture, I need an appointment. None involves THE. The reviewer was never asked
about the definite article, so KEEP_DEFINITE_ARTICLES stays false and THE follows §4 as
before. That is not a reversal of her ruling; it is declining to extend it over 90 further
gold rows on no evidence, where it produced TODAY THE BEST DAY OF MY LIFE.
It is also what sign linguistics predicts: definiteness is carried spatially, by pointing at
an established locus, so THE has no manual sign, while indefinite a is meaningful and
often maps to ONE.
Narrowing the rule took the engine from 77.25 BLEU / 59.4% exact strict to 88.87 / 80.8%,
and shrank the unmeasured dimension of the gold set from 117 rows to 34 — the 83
definite-only rows are measurable again with no re-authoring, because v2 already encodes them
correctly. The remaining 34 indefinite rows still need a person: where A sits in a reordered
gloss is a placement judgement. 34 rows is a tractable ask; 117 was not.
dataset/train.jsonl and validation.jsonl remain on the pre-review convention and must be
regenerated; the pinned model was trained on them.
10. Known gaps — what this convention cannot express
A flat uppercase token string is a lossy transcription, not the language. It cannot represent:
- Spatial agreement — establishing referents at locations in signing space and pointing back
- Classifier predicates — handshapes depicting size, shape, path and manner of motion
- Non-manual markers — brow raise (yes/no question), brow furrow (wh-question), headshake (negation), mouth morphemes. §8's yes/no rule is entirely dependent on a marker we drop.
- Verb directionality —
GIVEinflecting for who gives to whom - Role shift — body position marking reported speech
Also open, and requiring native-signer adjudication:
- Whether §4's retained function words correspond to real USL signs, or should be dropped.
- Whether
MARK_PASTshould default toTrue. - Whether modal-final (§2) holds across all modals in USL, or is an artefact of the small
salvaged sample (
CANandSHOULDwere the only two attested). - Ugandan-specific lexicon coverage beyond the seeded terms.
These should be reviewed by native USL signers, ideally through UNAD (Uganda National Association of the Deaf), before output is placed in front of Deaf users.
11. Validation rules
voxsign_usl/postprocess.py rejects model output that violates any of these, and falls back to
the rule engine:
| Check | Rejects |
|---|---|
| Casing | any lowercase letter outside a // separator |
| Punctuation | any of .,?!;:'" |
| Dropped words | any of a an the is am are was were do does did appearing as a token |
| Repetition | any trigram repeated 3+ times (degenerate decoding) |
| Length ratio | output shorter than 30% or longer than 250% of input token count |
| Empty | empty or whitespace-only output |