Skip to content

Commit ce96493

Browse files
committed
Setswana speaks truer words, blessed by Matumo's dictionary
AS is JAAKA (the dictionary knows jaka only as a verb, to sojourn; the conjunction like/as is jaaka). THEN is TLOGA (then, thereupon; gone is not a Setswana word). NOT crosses over as GA, the dictionary's negative form, so KE GA weighs IS NOT. isiZulu keeps parity with HHAYI for NOT. Every surface crosses over: the tongue tables, TONGUES.md word tables and honest notes, the language reference, the changelog, the first blessing example, the VS Code grammar and snippets, the site learn page and playground, and the tongue test suites (new GA and HHAYI run tests). Full suite green.
1 parent 933981f commit ce96493

12 files changed

Lines changed: 107 additions & 58 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ All notable changes to the God Code engine are recorded here, that the generatio
2626
### Changed
2727
- House-style pass: user-facing engine strings no longer carry em dashes between sentences (the endless-cycle guard, sandbox refusals, testimony failures, the `--help` description, and the editor hover notes all speak with full stops now); docs that quoted the old messages (`docs/sandbox.md`, `docs/LANGUAGE_SPEC.md`, `docs/LANGUAGE_REFERENCE.md`) and the playground's endless-cycle message follow suit
2828
- `ENVIRONMENT.set_existing` (the RESHAPE path) now suggests the nearest visible name
29+
- **🕊️ Setswana speaks truer words.** Two first-edition Setswana words are corrected and one crosses over at last, all verified against Matumo's *Setswana-English-Setswana Dictionary* (Botswana Book Centre, 1993), which the founder placed in the language's hands: `AS` is `JAAKA` (like, similar to; the dictionary knows `jaka` only as a verb meaning "to sojourn"), and `THEN` is `TLOGA` (then, thereupon; `gone` is not a Setswana word at all). `NOT` crosses over as `GA`, the dictionary's negative form, so `KE GA` weighs `IS NOT` and `GA` alone denies, in Setswana scrolls. The second tongue keeps full parity: isiZulu gains `HHAYI` for `NOT` (first edition; native speakers are its rightful editors). The mapping moves in `godcode/tongues.py`, and every surface that carried the old words crosses over with it: `docs/TONGUES.md` (with an honest dated correction note), `docs/LANGUAGE_REFERENCE.md`, the site learn page and the in-browser playground (alias map and the "Dumela (Setswana)" sample), the VS Code grammar and snippets, `examples/first_blessing_tn.god`, and the tongue test suites (including a new `GA` run test). Scrolls written with `JAKA` or `GONE` under `# tongue: tn` should cross over to `JAAKA` and `TLOGA`. `ELSE`, `FOR`, `WHILE`, `ENDFOR`, and `ENDWHILE` stay English for now, awaiting blessed words
2930
- LANGUAGE_REFERENCE §19's error table updated to the messages the engine actually speaks
3031
- **💬 String interpolation** — `{expr}` inside a double-quoted string breathes the expression's revealed value into the words: `"grace upon {name}"`, `"{loaves} loaves feed {loaves * 1000}"`, `"shouted: {UPPER(name)}"`. Any expression may dwell between the braces, including nested interpolated strings. `{{` and `}}` write a plain brace; a lone `}` stays as it is. A brace that is never closed, or braces with nothing between them, raise a gentle parse error that names the line. Works in the sandbox, in rites, and in `godcode fmt` (which round-trips interpolated strings untouched). New example `examples/interpolation_demo.god`; new `### Breathing values into strings` in `docs/LANGUAGE_REFERENCE.md` §3; a "Speak with feeling" lesson on the site learn page; and the in-browser playground now runs interpolation too, with a new "Speaking with Feeling" sample
3132
- **Agent gotcha** — repo `AGENTS.md` notes the interpolation rule so agents generating God Code use it correctly

‎docs/LANGUAGE_REFERENCE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A scroll may speak another tongue. Put a pragma comment in the file, e.g. `# ton
3535
```godcode
3636
# tongue: tn
3737
SIMOLOLA TLHOLEGO
38-
BOLELA leina JAKA "Lefatshe"
38+
BOLELA leina JAAKA "Lefatshe"
3939
SENOLA("Dumela, {leina}.")
4040
FEDISA TLHOLEGO
4141
```

‎docs/TONGUES.md‎

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Put a pragma comment in your scroll, and the grammar crosses over:
1212
```godcode
1313
# tongue: tn
1414
SIMOLOLA TLHOLEGO
15-
BOLELA leina JAKA "Lefatshe"
15+
BOLELA leina JAAKA "Lefatshe"
1616
SENOLA("Dumela, {leina}.")
1717
FEDISA TLHOLEGO
1818
```
@@ -29,23 +29,23 @@ words in the same file, so you can cross over one word at a time.
2929
| English | Setswana | English | Setswana |
3030
|---|---|---|---|
3131
| BEGIN | SIMOLOLA | IF | FA |
32-
| CREATION | TLHOLEGO | THEN | GONE |
32+
| CREATION | TLHOLEGO | THEN | TLOGA |
3333
| END | FEDISA | TRY | LEKA |
3434
| DECLARE | BOLELA | CATCH | TSHWARA |
35-
| AS | JAKA | DEFINE | TLHALOSA |
35+
| AS | JAAKA | DEFINE | TLHALOSA |
3636
| BREATHE | HEMA | RITE | TIRO |
3737
| LIFE | BOTSHELO | INVOKE | BITSA |
3838
| INTO | TENG | RETURN | BUSETSA |
3939
| REVEAL | SENOLA | IMPORT | TSENYA |
4040
| PROPHESY | POROFETA | IS | KE |
41-
| ASCEND | TLHATLOGA | AND | LE |
42-
| REFLECT | AKANYA | OR | KGOTSA |
43-
| BLESS | SEGOFATSA | IN | MO |
44-
| ANOINT | TLOTSA | DO | DIRA |
45-
| SEAL | TSWALA | TRUE | NNETE |
46-
| TESTIFY | PAKA | FALSE | MAAKA |
47-
| BREAK | KGAOLA | VOID | SEPE |
48-
| CONTINUE | TSWELELA | | |
41+
| ASCEND | TLHATLOGA | NOT | GA |
42+
| REFLECT | AKANYA | AND | LE |
43+
| BLESS | SEGOFATSA | OR | KGOTSA |
44+
| ANOINT | TLOTSA | IN | MO |
45+
| SEAL | TSWALA | DO | DIRA |
46+
| TESTIFY | PAKA | TRUE | NNETE |
47+
| BREAK | KGAOLA | FALSE | MAAKA |
48+
| CONTINUE | TSWELELA | VOID | SEPE |
4949

5050
Two closers are spoken as two words on one line: `FEDISA FA` closes an
5151
`IF` (ENDIF), and `FEDISA LEKA` closes a `TRY` (ENDTRY).
@@ -74,14 +74,14 @@ QEDA INDALO
7474
| INTO | PHAKATHI | RETURN | BUYISA |
7575
| REVEAL | VEZA | IMPORT | NGENISA |
7676
| PROPHESY | PROFETA | IS | NGU |
77-
| ASCEND | ENYUKA | AND | KANYE |
78-
| REFLECT | ZINDLA | OR | NOMA |
79-
| BLESS | BUSISA | IN | KU |
80-
| ANOINT | GCOBA | DO | ENZA |
81-
| SEAL | VALA | TRUE | IQINISO |
82-
| TESTIFY | FAKAZA | FALSE | AMANGA |
83-
| BREAK | PHULA | VOID | LUTHO |
84-
| CONTINUE | QHUBEKA | | |
77+
| ASCEND | ENYUKA | NOT | HHAYI |
78+
| REFLECT | ZINDLA | AND | KANYE |
79+
| BLESS | BUSISA | OR | NOMA |
80+
| ANOINT | GCOBA | IN | KU |
81+
| SEAL | VALA | DO | ENZA |
82+
| TESTIFY | FAKAZA | TRUE | IQINISO |
83+
| BREAK | PHULA | FALSE | AMANGA |
84+
| CONTINUE | QHUBEKA | VOID | LUTHO |
8585

8686
Two closers are spoken as two words on one line: `QEDA UMA` closes an
8787
`IF` (ENDIF), and `QEDA ZAMA` closes a `TRY` (ENDTRY). A worked example
@@ -90,13 +90,22 @@ lives at `examples/first_blessing_zu.god`, and the playground boots a
9090

9191
## Honest first-edition notes
9292

93-
A few words stay English in these first editions: `ELSE`, `NOT`, `FOR`,
93+
A few words stay English in these first editions: `ELSE`, `FOR`,
9494
`WHILE`, `ENDFOR`, and `ENDWHILE`. They will cross over as speakers bless
9595
better words. The named tools (`SHA256`, `UPPER`, `RANGE`, and the rest)
9696
keep their names in every tongue, by design: the grammar speaks your
9797
language, the tools stay shared, and a scroll written in Setswana runs
9898
beside one written in isiZulu or English without translation.
9999

100+
Corrected 2026-10-04, against Matumo's *Setswana-English-Setswana
101+
Dictionary*: `AS` in Setswana is `JAAKA` (like, similar to). The first
102+
edition had written `JAKA`, which the dictionary knows only as a verb
103+
meaning "to sojourn". `THEN` is `TLOGA` (then, thereupon, as an
104+
auxiliary verb). The first edition had written `GONE`, which is not a
105+
Setswana word at all. And `NOT` crosses over at last as `GA`, the
106+
dictionary's negative form. Scrolls written with `JAKA` or `GONE`
107+
under `# tongue: tn` should cross over to `JAAKA` and `TLOGA`.
108+
100109
Corrected 2026-10-04, by a native speaker's eye: `BEGIN` in Setswana is
101110
`SIMOLOLA` (to begin, to start). The first edition had borrowed `QALA`,
102111
which is isiZulu, where it rightly remains. Scrolls written with `QALA`

‎editors/vscode/snippets/godcode.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
},
154154
"Setswana if": {
155155
"body": [
156-
"FA ${1:seeker} KE ${2:worthy} GONE",
156+
"FA ${1:seeker} KE ${2:worthy} TLOGA",
157157
"\t${3:SENOLA(\"heaven\")}",
158158
"FEDISA FA$0"
159159
],

‎editors/vscode/syntaxes/godcode.tmLanguage.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
"name": "entity.name.function.godcode"
6161
},
6262
"keyword-control": {
63-
"match": "(?i)\\b(IF|THEN|ELSE|ENDIF|FOR|IN|ENDFOR|WHILE|DO|ENDWHILE|DEFINE|INVOKE|RETURN|IMPORT|TRY|CATCH|ENDTRY|BREAK|CONTINUE|FA|GONE|FEDISA\\\\s+FA|LEKA|TSHWARA|FEDISA\\\\s+LEKA|KGAOLA|TSWELELA|BITSA|BUSETSA|TSENYA|MO|UMA|KHONA|QEDA\\s+UMA|ZAMA|BAMBA|QEDA\\s+ZAMA|PHULA|QHUBEKA|BIZA|BUYISA|NGENISA|KU|CHAZA)\\b",
63+
"match": "(?i)\\b(IF|THEN|ELSE|ENDIF|FOR|IN|ENDFOR|WHILE|DO|ENDWHILE|DEFINE|INVOKE|RETURN|IMPORT|TRY|CATCH|ENDTRY|BREAK|CONTINUE|FA|TLOGA|GA|FEDISA\\\\s+FA|LEKA|TSHWARA|FEDISA\\\\s+LEKA|KGAOLA|TSWELELA|BITSA|BUSETSA|TSENYA|MO|UMA|KHONA|QEDA\\s+UMA|ZAMA|BAMBA|QEDA\\s+ZAMA|PHULA|QHUBEKA|BIZA|BUYISA|NGENISA|KU|CHAZA)\\b",
6464
"name": "keyword.control.godcode"
6565
},
6666
"keyword-declaration": {
67-
"match": "(?i)\\b(DECLARE|AS|INTENT|ON|BOLELA|JAKA|MEMEZELA|NJENGA)\\b",
67+
"match": "(?i)\\b(DECLARE|AS|INTENT|ON|BOLELA|JAAKA|MEMEZELA|NJENGA)\\b",
6868
"name": "keyword.declaration.godcode"
6969
},
7070
"keyword-logic": {
71-
"match": "(?i)\\b(IS\\s+NOT|IS|NOT|AND|OR|KE|LE|KGOTSA|NGU|KANYE|NOMA)\\b",
71+
"match": "(?i)\\b(IS\\s+NOT|IS|NOT|AND|OR|KE|GA|LE|KGOTSA|NGU|HHAYI|KANYE|NOMA)\\b",
7272
"name": "keyword.operator.logical.godcode"
7373
},
7474
"keyword-spirit": {

‎examples/first_blessing_tn.god‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
# Dumela — the first blessing spoken in Setswana.
33
# Run it: godcode run examples/first_blessing_tn.god
44
SIMOLOLA TLHOLEGO
5-
BOLELA leina JAKA "tsala ya me"
5+
BOLELA leina JAAKA "tsala ya me"
66
SENOLA("Dumela, {leina}.")
77

8-
BOLELA matsatsi JAKA ["Mosupologo", "Labobedi", "Laboraro"]
8+
BOLELA matsatsi JAAKA ["Mosupologo", "Labobedi", "Laboraro"]
99
SENOLA("Malatsi a beke a mararo: {matsatsi}")
1010

11-
FA LEN(matsatsi) KE 0 GONE
11+
FA LEN(matsatsi) KE 0 TLOGA
1212
SENOLA("Ga go na malatsi")
1313
ELSE
1414
SENOLA("Go na le malatsi a {LEN(matsatsi)}")
1515
FEDISA FA
1616

1717
LEKA
18-
BOLELA karolo JAKA 10 / 0
18+
BOLELA karolo JAAKA 10 / 0
1919
TSHWARA
2020
SENOLA("Go tshwerwe phoso, mme tiro e tswelela")
2121
FEDISA LEKA

‎godcode/tongues.py‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
``RANGE`` ...) keep their names in every tongue, so scrolls stay
2020
interoperable and the standard library is learned once.
2121
- ``godcode fmt`` always renders the canonical English tongue.
22-
- These first editions leave a few words in English (``ELSE``, ``NOT``,
23-
``FOR``, ``WHILE``, ``ENDFOR``, ``ENDWHILE``); they are documented in
22+
- These first editions leave a few words in English (``ELSE``, ``FOR``,
23+
``WHILE``, ``ENDFOR``, ``ENDWHILE``); they are documented in
2424
``docs/TONGUES.md`` and will cross over as speakers bless better words.
25+
- The Setswana words were audited 2026-10-04 against Matumo's
26+
*Setswana-English-Setswana Dictionary* (Botswana Book Centre, 1993):
27+
``JAAKA`` (like, similar to) is the true word for ``AS`` (the headword
28+
``jaka`` is a verb, "to sojourn"), and ``TLOGA`` (then, thereupon) is
29+
the true word for ``THEN`` (``gone`` is not a Setswana word at all).
30+
``GA`` (not) is blessed for ``NOT``.
2531
"""
2632

2733
from __future__ import annotations
@@ -40,15 +46,16 @@
4046
"TLHOLEGO": "CREATION", # creation
4147
"FEDISA": "END", # end
4248
"BOLELA": "DECLARE", # say, announce
43-
"JAKA": "AS", # as, like
49+
"JAAKA": "AS", # like, similar to (Matumo: jaaka)
4450
"HEMA": "BREATHE", # breathe
4551
"BOTSHELO": "LIFE", # life
4652
"TENG": "INTO", # inside (MO is taken by IN)
4753
"SENOLA": "REVEAL", # reveal
4854
"POROFETA": "PROPHESY", # prophesy
4955
"TLHATLOGA": "ASCEND", # go up
5056
"FA": "IF", # if
51-
"GONE": "THEN", # then
57+
"TLOGA": "THEN", # then, thereupon (Matumo: tloga, auxiliary)
58+
"GA": "NOT", # not (Matumo: ga, negative form)
5259
"LEKA": "TRY", # try
5360
"TSHWARA": "CATCH", # catch
5461
"TLHALOSA": "DEFINE", # define, explain
@@ -117,6 +124,7 @@
117124
"BUYISA": "RETURN", # return, give back
118125
"NGENISA": "IMPORT", # bring in
119126
"NGU": "IS", # is
127+
"HHAYI": "NOT", # no, not (first edition; native speakers decide)
120128
"KANYE": "AND", # and, together
121129
"NOMA": "OR", # or
122130
"KU": "IN", # in, at

‎site/learn/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ <h3>Speak Setswana</h3>
183183
<div class="code-head">✦ dumela.god — the first tongue</div>
184184
<pre class="code godcode"># tongue: tn
185185
SIMOLOLA TLHOLEGO
186-
BOLELA leina JAKA "Lefatshe"
186+
BOLELA leina JAAKA "Lefatshe"
187187
SENOLA("Dumela, {leina}.")
188188
FEDISA TLHOLEGO</pre>
189189
</div>
190-
<p>God Code's heart was born in Botswana, and now its grammar speaks Setswana. Open a scroll with the line <code># tongue: tn</code> and the keywords cross over: <code>SIMOLOLA</code> for <code>BEGIN</code>, <code>SENOLA</code> for <code>REVEAL</code>, <code>FA</code> and <code>GONE</code> for <code>IF</code> and <code>THEN</code>, <code>LEKA</code> and <code>TSHWARA</code> for <code>TRY</code> and <code>CATCH</code>. English words still work beside them, so you can cross over one word at a time, and the named tools (<code>SHA256</code>, <code>UPPER</code>, <code>RANGE</code>) keep their names in every tongue. The <a href="../playground/">playground</a> reads the pragma too, and boots a "Dumela (Setswana)" creation ready to run. The full word table lives in <a href="https://github.com/godcodeengine/Godcode-engine/blob/main/docs/TONGUES.md">docs/TONGUES.md</a>; if you speak Setswana and a word rings wrong, you are its rightful editor. The <code>godcode lsp</code> language server reads the pragma as well: it offers Setswana completions like <code>SENOLA (REVEAL)</code>, and hovering a Setswana word shows the English keyword's own notes. The VS Code extension paints Setswana keywords in their colors, and typing <code>simolola</code> or <code>fa</code> unfolds a Setswana creation block or conditional.</p>
190+
<p>God Code's heart was born in Botswana, and now its grammar speaks Setswana. Open a scroll with the line <code># tongue: tn</code> and the keywords cross over: <code>SIMOLOLA</code> for <code>BEGIN</code>, <code>SENOLA</code> for <code>REVEAL</code>, <code>FA</code> and <code>TLOGA</code> for <code>IF</code> and <code>THEN</code>, <code>LEKA</code> and <code>TSHWARA</code> for <code>TRY</code> and <code>CATCH</code>. English words still work beside them, so you can cross over one word at a time, and the named tools (<code>SHA256</code>, <code>UPPER</code>, <code>RANGE</code>) keep their names in every tongue. The <a href="../playground/">playground</a> reads the pragma too, and boots a "Dumela (Setswana)" creation ready to run. The full word table lives in <a href="https://github.com/godcodeengine/Godcode-engine/blob/main/docs/TONGUES.md">docs/TONGUES.md</a>; if you speak Setswana and a word rings wrong, you are its rightful editor. The <code>godcode lsp</code> language server reads the pragma as well: it offers Setswana completions like <code>SENOLA (REVEAL)</code>, and hovering a Setswana word shows the English keyword's own notes. The VS Code extension paints Setswana keywords in their colors, and typing <code>simolola</code> or <code>fa</code> unfolds a Setswana creation block or conditional.</p>
191191
<h3>Speak isiZulu</h3>
192192
<div class="code-card">
193193
<div class="code-head">✦ sawubona.god — the second tongue</div>

‎site/playground/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ <h1>🕊 God Code Playground</h1>
151151
// Chosen per scroll by a `# tongue: tn` or `# tongue: zu` pragma.
152152
const TONGUES={
153153
tn:{name:"Setswana",
154-
aliases:{SIMOLOLA:"BEGIN",TLHOLEGO:"CREATION",FEDISA:"END",BOLELA:"DECLARE",JAKA:"AS",HEMA:"BREATHE",BOTSHELO:"LIFE",TENG:"INTO",SENOLA:"REVEAL",POROFETA:"PROPHESY",TLHATLOGA:"ASCEND",FA:"IF",GONE:"THEN",LEKA:"TRY",TSHWARA:"CATCH",TLHALOSA:"DEFINE",TIRO:"RITE",BITSA:"INVOKE",BUSETSA:"RETURN",TSENYA:"IMPORT",KE:"IS",LE:"AND",KGOTSA:"OR",MO:"IN",DIRA:"DO",AKANYA:"REFLECT",SEGOFATSA:"BLESS",TLOTSA:"ANOINT",TSWALA:"SEAL",PAKA:"TESTIFY",NNETE:"TRUE",MAAKA:"FALSE",SEPE:"VOID",KGAOLA:"BREAK",TSWELELA:"CONTINUE"},
154+
aliases:{SIMOLOLA:"BEGIN",TLHOLEGO:"CREATION",FEDISA:"END",BOLELA:"DECLARE",JAAKA:"AS",HEMA:"BREATHE",BOTSHELO:"LIFE",TENG:"INTO",SENOLA:"REVEAL",POROFETA:"PROPHESY",TLHATLOGA:"ASCEND",FA:"IF",TLOGA:"THEN",LEKA:"TRY",TSHWARA:"CATCH",TLHALOSA:"DEFINE",TIRO:"RITE",BITSA:"INVOKE",BUSETSA:"RETURN",TSENYA:"IMPORT",KE:"IS",GA:"NOT",LE:"AND",KGOTSA:"OR",MO:"IN",DIRA:"DO",AKANYA:"REFLECT",SEGOFATSA:"BLESS",TLOTSA:"ANOINT",TSWALA:"SEAL",PAKA:"TESTIFY",NNETE:"TRUE",MAAKA:"FALSE",SEPE:"VOID",KGAOLA:"BREAK",TSWELELA:"CONTINUE"},
155155
compounds:{"FEDISA FA":"ENDIF","FEDISA LEKA":"ENDTRY"}},
156156
zu:{name:"isiZulu",
157-
aliases:{QALA:"BEGIN",INDALO:"CREATION",QEDA:"END",MEMEZELA:"DECLARE",NJENGA:"AS",PHEFUMULA:"BREATHE",IMPILO:"LIFE",PHAKATHI:"INTO",VEZA:"REVEAL",PROFETA:"PROPHESY",ENYUKA:"ASCEND",UMA:"IF",KHONA:"THEN",ZAMA:"TRY",BAMBA:"CATCH",CHAZA:"DEFINE",ISIKO:"RITE",BIZA:"INVOKE",BUYISA:"RETURN",NGENISA:"IMPORT",NGU:"IS",KANYE:"AND",NOMA:"OR",KU:"IN",ENZA:"DO",ZINDLA:"REFLECT",BUSISA:"BLESS",GCOBA:"ANOINT",VALA:"SEAL",FAKAZA:"TESTIFY",IQINISO:"TRUE",AMANGA:"FALSE",LUTHO:"VOID",PHULA:"BREAK",QHUBEKA:"CONTINUE"},
157+
aliases:{QALA:"BEGIN",INDALO:"CREATION",QEDA:"END",MEMEZELA:"DECLARE",NJENGA:"AS",PHEFUMULA:"BREATHE",IMPILO:"LIFE",PHAKATHI:"INTO",VEZA:"REVEAL",PROFETA:"PROPHESY",ENYUKA:"ASCEND",UMA:"IF",KHONA:"THEN",ZAMA:"TRY",BAMBA:"CATCH",CHAZA:"DEFINE",ISIKO:"RITE",BIZA:"INVOKE",BUYISA:"RETURN",NGENISA:"IMPORT",NGU:"IS",HHAYI:"NOT",KANYE:"AND",NOMA:"OR",KU:"IN",ENZA:"DO",ZINDLA:"REFLECT",BUSISA:"BLESS",GCOBA:"ANOINT",VALA:"SEAL",FAKAZA:"TESTIFY",IQINISO:"TRUE",AMANGA:"FALSE",LUTHO:"VOID",PHULA:"BREAK",QHUBEKA:"CONTINUE"},
158158
compounds:{"QEDA UMA":"ENDIF","QEDA ZAMA":"ENDTRY"}}
159159
};
160160
function detectTongue(source){
@@ -1250,15 +1250,15 @@ <h1>🕊 God Code Playground</h1>
12501250
# Dumela — God Code speaks Setswana. English keywords still work beside
12511251
# the Setswana ones; FEDISA FA closes the IF, FEDISA LEKA closes the TRY.
12521252
SIMOLOLA TLHOLEGO
1253-
BOLELA leina JAKA "tsala ya me"
1253+
BOLELA leina JAAKA "tsala ya me"
12541254
SENOLA("Dumela, {leina}.")
1255-
FA LEN(leina) KE 0 GONE
1255+
FA LEN(leina) KE 0 TLOGA
12561256
SENOLA("Ga go na leina")
12571257
ELSE
12581258
SENOLA("Leina le teng")
12591259
FEDISA FA
12601260
LEKA
1261-
BOLELA karolo JAKA 10 / 0
1261+
BOLELA karolo JAAKA 10 / 0
12621262
TSHWARA
12631263
SENOLA("Go tshwerwe phoso, mme tiro e tswelela")
12641264
FEDISA LEKA

‎tests/test_lsp_tongues.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"# tongue: tn\n"
2424
"SIMOLOLA TLHOLEGO\n"
2525
' SENOLA("Dumela")\n'
26-
" FA x GONE\n"
26+
" FA x TLOGA\n"
2727
' SENOLA("go")\n'
2828
" FEDISA FA\n"
2929
"FEDISA TLHOLEGO\n"
@@ -112,7 +112,7 @@ def test_completion_default_signature_unchanged() -> None:
112112

113113
def test_hover_key_single_word() -> None:
114114
assert lsp.tongue_hover_key(' SENOLA("hi")', 4, "tn") == "REVEAL"
115-
assert lsp.tongue_hover_key(" FA x GONE", 3, "tn") == "IF"
115+
assert lsp.tongue_hover_key(" FA x TLOGA", 3, "tn") == "IF"
116116

117117

118118
def test_hover_key_two_word_closers() -> None:
@@ -316,7 +316,7 @@ def test_vscode_grammar_paints_setswana_keywords() -> None:
316316
assert patterns["keyword-spirit"].search("SENOLA")
317317
assert patterns["keyword-spirit"].search("POROFETA")
318318
assert patterns["keyword-control"].search("FA")
319-
assert patterns["keyword-control"].search("GONE")
319+
assert patterns["keyword-control"].search("TLOGA")
320320
assert patterns["keyword-control"].search("FEDISA FA")
321321
assert patterns["keyword-control"].search("FEDISA LEKA")
322322
assert patterns["keyword-control"].search("LEKA")
@@ -327,7 +327,7 @@ def test_vscode_grammar_paints_setswana_keywords() -> None:
327327
assert patterns["keyword-control"].search("BUSETSA")
328328
assert patterns["keyword-control"].search("TSENYA")
329329
assert patterns["keyword-declaration"].search("BOLELA")
330-
assert patterns["keyword-declaration"].search("JAKA")
330+
assert patterns["keyword-declaration"].search("JAAKA")
331331
assert patterns["keyword-logic"].search("KE")
332332
assert patterns["keyword-logic"].search("LE")
333333
assert patterns["keyword-logic"].search("KGOTSA")

0 commit comments

Comments
 (0)