id stringlengths 5 5 | lang stringclasses 6
values | note stringlengths 23 82 | text stringlengths 8 91 | state stringclasses 3
values | assurance int64 0 2 | reply stringlengths 8 97 |
|---|---|---|---|---|---|---|
en-01 | en | synonyms of nouns and a fixed phrase | The doctor said that he would buy a new car because of the high price. | PARAPHRASED | 2 | The doctor said that he would buy a new automobile owing to the high price. |
en-02 | en | a conditional clause turned round, a negation kept | If the weather is bad tomorrow, we will not go to the park. | PARAPHRASED | 2 | We will not go to the park if the weather is bad tomorrow. |
en-03 | en | a third person pronoun forbids turning the clauses round, words are still replaced | Although the doctor was tired, he answered quickly. | PARAPHRASED | 2 | Although the doctor was weary, he answered swiftly. |
en-04 | en | a sentence adverb with its comma, a number kept | He didn't finish the 3 reports; however, he started the fourth one. | PARAPHRASED | 2 | He didn't finish the 3 reports; nevertheless, he commenced the fourth one. |
en-05 | en | a quoted span is never touched | She told me: "I do not know the answer", but I believe her. | PARTIAL | 1 | She informed me: "I do not know the answer", but I believe her. |
en-06 | en | an address and a number are protected | Write to anna@refinge.invalid about the problem before 5 pm. | PARAPHRASED | 2 | Write to anna@refinge.invalid about the issue before 5 pm. |
en-07 | en | nothing in the lexicon applies | Nothing special happens on Sundays. | UNCHANGED | 0 | Nothing special happens on Sundays. |
en-08 | en | a concessive clause and a hedge | Perhaps the kids will choose the big shop, although it is far from here. | PARAPHRASED | 2 | Maybe the kids will select the big shop, although it is far from here. |
en-09 | en | three sentences, one with an exclamation mark | We usually buy fresh bread. Sometimes we also bake it at home. The film was almost perfect! | PARAPHRASED | 2 | We as a rule buy fresh bread. Now and then we also bake it at home. The movie was nearly perfect! |
en-10 | en | an imperative with a negation | Do not touch anything until the doctor arrives. | PARAPHRASED | 2 | Don't touch anything until the physician arrives. |
en-11 | en | an abbreviation does not end a sentence | Mr. Brown will start the project immediately, and he cannot wait. | PARAPHRASED | 2 | Mr. Brown will commence the project straight away, and he cannot wait. |
es-01 | es | a dropped subject forbids turning the clauses round, words are still replaced | Aunque el médico estaba cansado, respondió a la pregunta con rapidez. | PARAPHRASED | 2 | Aunque el médico estaba agotado, respondió a la pregunta rápidamente. |
es-02 | es | a conditional clause turned round, an explicit subject, a number kept | Si llueve mañana, nosotros no iremos al parque con los 3 niños. | PARAPHRASED | 2 | Nosotros no iremos al parque con los 3 niños si llueve mañana. |
es-03 | es | a connective with its comma after a semicolon | El coche es muy rápido; sin embargo, no es nada barato. | PARAPHRASED | 2 | El automóvil es muy rápido; no obstante, no es nada barato. |
es-04 | es | a hedge and a fixed phrase | Quizás la niña quiera hablar con el médico, a pesar de la hora. | PARAPHRASED | 2 | Quizá la chica quiera hablar con el médico, a pesar de la hora. |
es-05 | es | a quoted span is never touched | Ella dijo: «No sé la respuesta», pero yo le creo. | PARTIAL | 1 | Ella afirmó: «No sé la respuesta», pero yo le creo. |
es-06 | es | nothing in the lexicon applies | No hay nada nuevo. | UNCHANGED | 0 | No hay nada nuevo. |
es-07 | es | two sentences, a number kept | Además, el libro es difícil. Normalmente leemos 20 páginas por día. | PARAPHRASED | 2 | Asimismo, el libro es difícil. Por lo general leemos 20 páginas por día. |
es-08 | es | an address is protected and a time clause turns round | Escribe a luis@refinge.invalid cuando llegues a casa. | UNCHANGED | 0 | Escribe a luis@refinge.invalid cuando llegues a casa. |
it-01 | it | a dropped subject forbids turning the clauses round, words are still replaced | Sebbene il medico fosse stanco, ha risposto subito alla domanda. | PARAPHRASED | 2 | Sebbene il medico fosse stanco, ha risposto in un attimo alla chiede. |
it-02 | it | a concessive clause turned round, an explicit subject | Sebbene sia tardi, il medico risponde subito alla domanda. | PARAPHRASED | 2 | Il medico risponde subito alla domanda sebbene sia tardi. |
it-03 | it | a conditional clause turned round, an explicit subject, a number kept | Se domani piove, noi non andremo al parco con i 3 bambini. | PARAPHRASED | 2 | Noi non andremo al parco con i 3 fanciulli se domani piove. |
it-04 | it | a connective with its comma after a semicolon | La macchina è molto veloce; tuttavia, non è affatto economica. | PARAPHRASED | 2 | La vettura è molto veloce; nondimeno, non è affatto economica. |
it-05 | it | a preposition with an elided article | Forse il dottore verrà a casa, nonostante l'ora tarda. | PARAPHRASED | 2 | Probabilmente il medico verrà a casa, nonostante l'ora tarda. |
it-06 | it | a quoted span is never touched | Lei ha detto: «Non so la risposta», ma io le credo. | PARAPHRASED | 2 | Lei ha affermato: «Non so la risposta», però io le credo. |
it-07 | it | a word the seed lexicon had no partner for, now replaced | Non c'è niente di nuovo. | PARAPHRASED | 2 | Non c'è niente di recente. |
it-08 | it | two sentences, a number kept | Inoltre, il libro è difficile. Di solito leggiamo 20 pagine al giorno. | PARAPHRASED | 2 | In aggiunta, il libro è difficile. Generalmente leggiamo 20 pagine al giorno. |
it-09 | it | an address is protected and a time clause turns round | Scrivi a luca@refinge.invalid quando arrivi a casa. | UNCHANGED | 0 | Scrivi a luca@refinge.invalid quando arrivi a casa. |
zh-01 | zh | a connective and an adverb | 医生说这个问题很困难,但是他会马上回答。 | PARAPHRASED | 2 | 医生说这个问题很艰难,但是他会立即回答。 |
zh-02 | zh | the correlative 就 forbids turning the clauses round | 如果明天下雨,我们就不去公园了。 | UNCHANGED | 0 | 如果明天下雨,我们就不去公园了。 |
zh-03 | zh | a causal clause turned round | 我们不去公园,因为明天会下雨。 | PARAPHRASED | 2 | 因为明天会下雨,我们不去公园。 |
zh-04 | zh | a causal connective and a frequency adverb | 孩子们很高兴,因此他们经常看电影。 | PARAPHRASED | 2 | 儿童们很高兴,所以他们经常看电影。 |
zh-05 | zh | a quoted span is never touched | 他说:“我不知道答案”,可是我相信他。 | PARAPHRASED | 2 | 他说:“我不知道答案”,然而我相信他。 |
zh-06 | zh | nothing in the lexicon applies | 今天没有新消息。 | UNCHANGED | 0 | 今天没有新消息。 |
zh-07 | zh | a connective with its comma, a number kept | 此外,这台电脑很快速。大约有50个人喜欢它。 | PARAPHRASED | 2 | 此外,这台计算机十分快速。大概有50个人喜爱它。 |
zh-08 | zh | an address is protected | 请给 anna@refinge.invalid 发邮件,他或许会回答。 | PARAPHRASED | 2 | 请给 anna@refinge.invalid 发邮件,他也许会答复。 |
hi-01 | hi | a connective, a noun and an adverb | डॉक्टर ने कहा कि यह समस्या कठिन है, लेकिन वह तुरंत जवाब देगा। | PARAPHRASED | 2 | डॉक्टर ने कहा कि यह समस्या मुश्किल है, किंतु वह तुरंत जवाब देगा। |
hi-02 | hi | a Devanagari numeral is kept, a negation is kept | मैं १० किताबें नहीं खरीद सकता, परंतु वह दोस्त के साथ शहर जाएगा। | PARAPHRASED | 2 | मैं १० किताबें नहीं खरीद सकता, लेकिन वह दोस्त के साथ नगर जाएगा। |
hi-03 | hi | two sentences with a causal connective | यह फ़िल्म बहुत सुंदर है। इसलिए मैं अक्सर इसे देखता हूँ। | PARAPHRASED | 2 | यह फ़िल्म बहुत खूबसूरत है। इस कारण मैं अक्सर इसे देखता हूँ। |
hi-04 | hi | a quoted span is never touched | उसने कहा: "मुझे जवाब नहीं पता", पर मैं उस पर विश्वास करता हूँ। | UNCHANGED | 0 | उसने कहा: "मुझे जवाब नहीं पता", पर मैं उस पर विश्वास करता हूँ। |
hi-05 | hi | nothing in the lexicon applies | आज कुछ नया नहीं हुआ। | UNCHANGED | 0 | आज कुछ नया नहीं हुआ। |
hi-06 | hi | a concessive connective and a hedge | हालाँकि वह खुश है, शायद वह कल नहीं आएगा। | PARAPHRASED | 2 | यद्यपि वह प्रसन्न है, शायद वह कल नहीं आएगा। |
hi-07 | hi | a connective with its comma, a numeral kept | इसके अलावा, यह किताब आसान है। लगभग ५० लोग इसे पढ़ते हैं। | PARAPHRASED | 2 | इसके अतिरिक्त, यह पुस्तक आसान है। तकरीबन ५० लोग इसे पढ़ते हैं। |
hi-08 | hi | an address is protected | anna@refinge.invalid को लिखिए, क्योंकि यह ज़रूरी है। | PARAPHRASED | 2 | anna@refinge.invalid को लिखिए, क्योंकि यह आवश्यक है। |
ar-01 | ar | a connective and two nouns | قال الطبيب إن المشكلة صعبة، لكن المعلم سعيد. | PARAPHRASED | 2 | قال الطبيب إن المسألة صعبة، غير أن المعلم سعيد. |
ar-02 | ar | a causal connective and an adverb | لذلك سنذهب فورا إلى البيت. | PARAPHRASED | 2 | لهذا السبب سنذهب فورا إلى البيت. |
ar-03 | ar | a hedge and a causal preposition | ربما يشتري الطبيب المنزل بسبب الأسعار. | PARAPHRASED | 2 | ربما يشتري الطبيب البيت جراء الأسعار. |
ar-04 | ar | a quoted span is never touched | قال: "لا أعرف الجواب" ولكنني أصدقه. | UNCHANGED | 0 | قال: "لا أعرف الجواب" ولكنني أصدقه. |
ar-05 | ar | nothing in the lexicon applies | لا يوجد جديد اليوم. | UNCHANGED | 0 | لا يوجد جديد اليوم. |
ar-06 | ar | a concessive phrase and an adverb | على الرغم من الطقس، سنخرج أيضا. | PARAPHRASED | 2 | بالرغم من الطقس، سنخرج أيضا. |
ar-07 | ar | an Arabic-Indic numeral is kept | الطبيب سعيد، غالبا ما يزور البيت ٣ مرات. | PARAPHRASED | 2 | الدكتور سعيد، غالبا ما يزور البيت ٣ مرات. |
ar-08 | ar | an address is protected | اكتب إلى anna@refinge.invalid بسبب المشكلة. | PARAPHRASED | 2 | اكتب إلى anna@refinge.invalid جراء المسألة. |
ar-09 | ar | a noun and an adverb of degree, the cause kept | علينا أن نشتري سيارة جديدة لأن القديمة غالية جدا. | PARAPHRASED | 2 | علينا أن نشتري مركبة جديدة لأن القديمة غالية إلى حد كبير. |
ar-10 | ar | an adjective and a noun inside a prepositional phrase | أخي يعمل في شركة كبيرة في وسط المدينة. | PARAPHRASED | 2 | أخي يعمل في شركة ضخمة في وسط المدينة. |
en-12 | en | an adjective and a noun, the tense kept | My brother works at a large company in the city centre. | PARAPHRASED | 2 | My brother works at a big company in the city centre. |
en-13 | en | two content words, a time marker kept | The teacher asked the students to finish their homework before Friday. | PARAPHRASED | 2 | The teacher asked the students to complete their homework before Friday. |
es-09 | es | a noun and an adverb of degree, the cause kept | Tenemos que comprar un coche nuevo porque el viejo es demasiado caro. | PARAPHRASED | 2 | Tenemos que comprar un auto nuevo porque el viejo es excesivamente caro. |
es-10 | es | a noun of the school, the verb form kept | El profesor pidió a los alumnos que terminaran los deberes. | PARAPHRASED | 2 | El profesor pidió a los estudiantes que terminaran los deberes. |
hi-09 | hi | an adjective and a noun, the verb kept | मेरा भाई शहर की एक बड़ी कंपनी में काम करता है। | PARAPHRASED | 2 | मेरा भाई शहर की एक विशाल कंपनी में काम करता है। |
hi-10 | hi | an adjective, the conditional frame kept | अगर तुम ध्यान से पढ़ोगे तो परीक्षा में सफल हो जाओगे। | PARAPHRASED | 2 | अगर तुम ध्यान से पढ़ोगे तो परीक्षा में कामयाब हो जाओगे। |
it-10 | it | an adjective and a consequence, the tense kept | Oggi il tempo è brutto, quindi siamo rimasti a casa. | PARAPHRASED | 2 | Oggi il tempo è cattivo, dunque siamo rimasti a casa. |
it-11 | it | a noun after an articulated preposition, a quantifier kept | Nel villaggio dove sono cresciuto ci sono molti giardini bellissimi. | PARAPHRASED | 2 | Nel paese dove sono cresciuto ci sono molti giardini bellissimi. |
zh-09 | zh | a noun and a measure word kept | 我哥哥在市中心的一家大公司上班。 | PARAPHRASED | 2 | 我哥哥在市中心的一家大企业上班。 |
zh-10 | zh | a verb and a repeated adjective kept | 他们打算为女儿组织一个小小的聚会。 | PARAPHRASED | 2 | 他们打算为女儿安排一个小小的聚会。 |
- 1. What the bundle promises and what it does not
- 2. Six sentences, and what came back
- 3. The same trick in four other scripts
- 4. When the bundle refuses
- 5. The topology
- 6. How the nodes agree
- 7. States and assurance
- 8. The meaning ledger
- 9. The canonical form
- 10. The guards on the clause turn round
- 11. What a lexicon file holds
- 12. The SMT claims and the audit
- 13. Running it
- 14. Coverage, measured twice
- 15. Enlarging a lexicon without breaking a promise
- 16. What this does not do
- 17. Tests
- 18. Extending the bundle and the repository boundary
- 19. Publishing this folder
- 20. The fields of the two data files
- 21. Loading this dataset
- 22. Rights
- 23. Citation
refinge: collaborative paraphrase in six languages
This dataset is the refinge/ folder of the LingoLOGOS project, published as it stands: 71 files of
code, data and this card. refinge is a topology of the LingoLOGOS orchestrator that takes a text in
Arabic, English, Spanish, Hindi or Chinese and gives it back in other words, with the same meaning. Eleven nodes work on it: three
propose different wordings, a fourth merges what the three proposed, four critics check every candidate in four
independent ways, an arbiter audits the candidates and picks one per sentence, and a closer writes the text
back together with the state of the session and the assurance that state supports. Nodes that cannot agree on a
sentence give it back unchanged, and say so.
The folder is self-contained: lexicon/, lingologos_refinge/, agents/, nodes/, problems/, tools/ and
tests/. It runs without a model and without a network, on what is here: the only dependencies are z3-solver for
the claims and pytest for the tests, and huggingface_hub is named for this publishing tool alone. The
orchestrator that starts the eleven real processes of section 13 is code of the repository under
src/lingologos_orchestrator, and it is not published as a dataset. The six lexicons are the whole knowledge of the bundle,
and they are also the whole surface a reader can extend: 463 groups, 994 member pairs and 2211 word forms across
the six languages.
1. What the bundle promises and what it does not
The paraphrase keeps the meaning relative to the lexicon of the language: the words that may replace each other, the markers that must stay, the clause frames that may be turned round. Nothing in the bundle understands a sentence. What it can say, and checks on every candidate, is that
- the sentence and its paraphrase reduce to the same canonical form (section 9), and
- they carry the same ledger of numerals, names, negations, quantifiers, modal verbs and connectives (section 8).
Section 16 lists what this does not cover. Read it before relying on a paraphrase.
2. Six sentences, and what came back
Each line below was run with the lexicons in this folder: a row of problems/corpus.jsonl, a row of
problems/natural.jsonl, or a sentence typed at the command line. Nothing is hand-written on the right hand side.
en The doctor said that he would buy a new car because of the high price.
The doctor said that he would buy a new automobile owing to the high price.
en Mr. Brown will start the project immediately, and he cannot wait.
Mr. Brown will commence the project straight away, and he cannot wait.
en We usually buy fresh bread. Sometimes we also bake it at home. The film was almost perfect!
We as a rule buy fresh bread. Now and then we also bake it at home. The movie was nearly perfect!
it Non c'è niente di nuovo.
Non c'è niente di recente.
it Oggi il tempo è brutto, quindi siamo rimasti a casa.
Oggi il tempo è cattivo, dunque siamo rimasti a casa.
es Tenemos que comprar un coche nuevo porque el viejo es demasiado caro.
Tenemos que comprar un auto nuevo porque el viejo es excesivamente caro.
The English rows are the interesting ones to read: the first keeps because of and buys an automobile; the
second keeps the abbreviation Mr. as a sentence boundary and moves immediately into a phrase; the third
rewrites three sentences at once and keeps the exclamation mark where it was. The Italian row is the shortest
refusal-turned-acceptance in the corpus: nuovo had no partner in the seed lexicon, so the bundle returned the
sentence untouched; now nuovo and recente are one group and the sentence comes back reworded.
3. The same trick in four other scripts
ar قال الطبيب إن المشكلة صعبة، لكن المعلم سعيد.
قال الطبيب إن المسألة صعبة، غير أن المعلم سعيد.
ar علينا أن نشتري سيارة جديدة لأن القديمة غالية جدا.
علينا أن نشتري مركبة جديدة لأن القديمة غالية إلى حد كبير.
hi मैं १० किताबें नहीं खरीद सकता, परंतु वह दोस्त के साथ शहर जाएगा।
मैं १० किताबें नहीं खरीद सकता, लेकिन वह दोस्त के साथ नगर जाएगा।
hi अगर तुम ध्यान से पढ़ोगे तो परीक्षा में सफल हो जाओगे।
अगर तुम ध्यान से पढ़ोगे तो परीक्षा में कामयाब हो जाओगे।
zh 孩子们很高兴,因此他们经常看电影。
儿童们很高兴,所以他们经常看电影。
zh 我哥哥在市中心的一家大公司上班。
我哥哥在市中心的一家大企业上班。
In the Hindi row the Devanagari numeral १० and the negation नहीं are counted by the ledger and stay exactly
where they were; परंतु and लेकिन are one function group, and शहर and नगर one noun group. In the Arabic rows
the cause لأن is a marker and is never touched, while جدا and إلى حد كبير are one group of degree. Chinese
is matched on characters, so 公司 and 企业 are matched as two character pairs and nothing inside them moves.
4. When the bundle refuses
en Nothing special happens on Sundays. UNCHANGED
es No hay nada nuevo. UNCHANGED
zh 今天没有新消息。 UNCHANGED
en She told me: "I do not know the answer", but I believe her.
She informed me: "I do not know the answer", but I think her. PARTIAL, assurance 1
it Lei ha detto: «Non so la risposta», ma io le credo.
Lei ha detto: «Non so la risposta», però io le credo. PARTIAL, assurance 1
es Escribe a luis@refinge.invalid cuando llegues a casa. UNCHANGED
The four refusals say different things. The English, Spanish and Chinese sentences have no word that the lexicon
of that language can pair with another: the answer is the sentence you wrote, and the state says so instead of
pretending. The Spanish sentence is the point of the whole design: Italian has nuovo/recente, Spanish does
not have nuevo/nuevo, and the bundle does not borrow a synonym from a relative language. In the two
quoted-sentence rows the words between the quotation marks are protected and stay letter for letter while the
words outside them move. The last row has a time clause that could be turned round, but luis@refinge.invalid is a
protected token inside a sentence whose subject is dropped, and the guard in section 10 refuses the turn.
PARTIAL is the state when a change went through but the arbiter would not call it agreed: some changed sentence
is only WEAK, so the assurance is 1 and not 2. The text is still safe to use; it is just barely different from
the original.
5. The topology
| # | node | what it does |
|---|---|---|
| 1 | intake |
finds the language, cuts the text into sentences, protects names, numerals and quoted words, writes the meaning ledger of every sentence |
| 2 | proposer_lexical |
candidates that replace content words by members of their lexical group |
| 3 | proposer_function |
candidates that replace function words and fixed phrases (however / nevertheless, in order to / so as to, do not / don't) |
| 4 | proposer_syntactic |
candidates that move the subordinate clause to the other end of the sentence |
| 5 | proposer_blend |
candidates that merge the edits of the three proposers when the edits do not overlap |
| 6 | critic_meaning |
compares the ledger of the candidate with the ledger of the sentence |
| 7 | critic_form |
checks the shape: script, quotes, final punctuation, capitals, repeated words, length, a/an |
| 8 | critic_equivalence |
reduces both texts to their canonical form and requires them to be equal |
| 9 | critic_distance |
measures novelty: different enough to be a paraphrase, not so different that it drifted |
| 10 | arbiter |
recomputes the ledger itself, reports any node whose statement it cannot reproduce, chooses one candidate per sentence |
| 11 | closer |
writes the final text, the state and the assurance |
topology.json cycles through the eleven nodes once per negotiation round: the routing matrix is a single
cycle, maxTurns is 33 (three rounds), and the termination condition is FIXED_PIPELINE, so a session always
runs to the end and a node that has nothing to do says so (Idle). Each node is the same program,
agents/refinge_agent --role <node>, and the folder nodes/<node>/ holds its grammar.gf, ontology.smt2 and
seed_payload.json, generated by tools/make_nodes.py so the roles, the routing and the claims have one source.
6. How the nodes agree
In round 1 each proposer offers up to two candidates per sentence with at most one replacement each (the syntactic proposer offers the clause swaps). The blend proposer merges edits of different proposers into candidates of up to two replacements. The four critics vote on every candidate. The arbiter then looks at each sentence:
- a candidate that all three hard critics (meaning, form, equivalence) approve and whose novelty is inside
the bounds
[0.08, 0.65]makes the sentenceAGREED. Among the agreed candidates the one with a novelty closest to 0.30 wins: clearly different, not far from the original. An agreed sentence is never touched again; - if candidates passed the hard critics but are too close to the original the sentence is
WEAKand waits; - if none passed, the sentence stays
OPEN, and every single edit a critic refused is written down in the sentence so that no proposer offers it again.
In rounds 2 and 3 the proposers work only on sentences still waiting and may combine more edits (3, then 6
per candidate). After the last round a sentence nobody could agree on is UNCHANGED (no candidate passed) or
stays WEAK (a candidate passed but is too close). A sentence for which no edit exists at all is UNCHANGED at
once and costs no further round.
The numbers in this section -- two candidates per proposer, one edit in round 1, the novelty bounds, three rounds -- are the ones the bundle was built with. They were not moved while the lexicons were enlarged, and section 14 shows what that means for the coverage figures.
Choices of the proposers are ordered by a hash of the seed, the sentence and the edit, so a run is repeatable
(--seed), and a different seed gives a different but equally checked paraphrase.
7. States and assurance
| state | assurance | meaning |
|---|---|---|
PARAPHRASED |
2 | at least one sentence changed and every changed sentence is AGREED |
PARTIAL |
1 | at least one sentence changed and some changed sentence is only WEAK |
UNCHANGED |
0 | nothing could be rewritten safely: the original comes back |
TAMPERED |
0 | a node's statement about its own work was not reproduced by the arbiter: the original comes back |
NONE |
0 | a node crashed: the original comes back |
TOO_LONG |
0 | more than 6000 characters: refused whole |
EMPTY |
0 | no text |
The closer states the assurance as an integer next to its ceiling, and an SMT claim asserts that the shown
value never exceeds the ceiling. reply is always a text the person can use: the paraphrase when the state
supports one, the original otherwise.
8. The meaning ledger
For every sentence the intake writes a dictionary of counts and every candidate must reproduce it exactly, in both directions (adding a negation is as wrong as dropping one):
num:<value>every numeral, with Arabic-Indic, Devanagari and full width digits written as ASCII;prot:<surface>every protected token: names (capitalised words inside a sentence), words between quotation marks, addresses and mentions, acronyms, words that contain digits, words of another script inside Arabic, Hindi or Chinese text. Protected tokens are never replaced;negation,quantifier,modal: the exact form of each marker (notis notnever);condition,time,cause,contrast,hedge,approx,question: how many of them;end:<class>the class of the final punctuation (.,?,!).
A contraction counts as its expansion (don't as do not) through the fold table of the lexicon.
9. The canonical form
rewrite.canon turns a sentence into a list of elements. A word of any group becomes
(group, slots, prefix); a protected token keeps its exact surface; any other word is its lowercase key;
numerals are normalised. If the sentence has a subordinate clause at its end it is first put in front, so a
swapped pair compares equal. Two sentences are equivalent when the lists have the same length and agree
element by element, where two group elements agree if they are the same group, the same prefix and their slots
(forms such as present, past, masculine, plural) overlap. A changed word that is not in a group makes the forms
differ; a verb that changes tense makes the slots differ.
10. The guards on the clause turn round
A subordinate clause may be moved to the other end of the sentence only through a frame listed in swaps, and
rewrite.find_edits refuses the move when
- the main clause starts with a third person pronoun, or with a pronoun of the
pronounslist of the lexicon (the pronoun of a sentence whose subject is dropped in Spanish, Italian and Chinese, and now also in Arabic and Hindi, whose lexicons carry a pronoun list of 12 and 24 entries); - the main clause starts with a subject listed in
subject_starters(the bundle treats a sentence that starts withit,there,questo,c'èas impersonal and does not move it); - the subordinate clause is introduced by a connective in the
not_afterlist of the frame, or by a word that is not the connective of the frame; - the subordinate clause is negative in Chinese (
不/没before the verb) or carries a correlative adverb (就,才) in its main clause, because the pair spans the comma and moving the comma breaks the pair; - the comma that the frame expects is not in the text (
comma_afteron the connective).
Arabic and Hindi have 6 and 5 clause frames now; they had none. Spanish, Italian, English and Chinese keep the frames they had, for a total of 32 frames.
11. What a lexicon file holds
lexicon/<lang>.json is one JSON object. The keys:
| key | what it holds |
|---|---|
groups |
the groups themselves: id, kind (lexical for content words, function for connectives, adverbs and fixed phrases), pos, forms (how many slot sets a member carries: 1 invariant, 2 number, 3 gender and number, 5 verb, 6 verb with reflexive), members (one entry per member: the word forms of that member, null for a slot that word does not have), gender where articles agree (es, it, ar), needs_det, comma_after, not_after, clitics (ar), and nothing else |
markers |
the words that carry meaning and may never be replaced: negation, quantifier, modal, condition, time, cause, contrast, hedge, approx, question |
fold, canon_fold |
contractions and their expansion (don't to do not), and the character folding used when matching (أ to ا in Arabic, visarga and anusvara folding in Hindi) |
collocations |
fixed phrases that freeze the tokens they cover, so no proposer cuts inside them |
swaps |
the clause frames of section 10 |
pronouns, subject_starters |
the lists that block a clause turn round |
stopwords, abbreviations, determiners |
the tokeniser's helpers: what is not a name, what does not end a sentence, what a needs_det noun must sit after |
Sizes, as the folder stands and as it was when the bundle was first written:
| lang | groups | members | forms | markers | collocations | swaps | pronouns | seed groups | seed members | seed forms |
|---|---|---|---|---|---|---|---|---|---|---|
| en | 160 (123 + 37) | 337 | 713 | 94 | 41 | 13 | 16 | 46 | 103 | 154 |
| es | 83 (66 + 17) | 179 | 601 | 96 | 9 | 9 | 13 | 24 | 54 | 98 |
| it | 66 (47 + 19) | 145 | 430 | 101 | 0 | 12 | 12 | 20 | 46 | 76 |
| zh | 67 (54 + 13) | 143 | 143 | 78 | 0 | 2 | 5 | 24 | 53 | 53 |
| hi | 47 (33 + 14) | 104 | 196 | 57 | 0 | 5 | 24 | 21 | 50 | 66 |
| ar | 40 (28 + 12) | 86 | 128 | 57 | 1 | 6 | 12 | 14 | 33 | 37 |
| all | 463 (351 + 112) | 994 | 2211 | 483 | 51 | 47 | 82 | 149 | 339 | 484 |
Every group in the six lexicons is hand-written for this bundle, the seed entries and the entries added since alike; nothing was mined from a third-party, licensed or online source.
12. The SMT claims and the audit
Every node attaches to its message a claim in SMT-LIB 2 about its own step, and the orchestrator re-solves it
with Z3 on every turn, comparing the answer with the z3Status the node wrote (claims.py). The claims are
integer arithmetic over numbers the node measured: the intake the characters lost when the sentences are glued
back, a proposer the ledger units its own candidates lose, a critic the candidates it approved that its own
recheck refuses, the arbiter the agreed sentences without a hard approval, the closer the assurance against its
ceiling. A node that writes unsat for a count it measured as non zero is caught by the referee. That is all
the claims promise.
What catches a node that lies about its inputs is the arbiter: it recomputes the ledger of every candidate
itself and compares it with what the proposer declared and with what critic_meaning reported. A mismatch is
written in tampered and the state becomes TAMPERED. Because a candidate needs three independent approvals,
a single blind critic cannot let a bad candidate through, and the arbiter's own recomputation covers the meaning
critic. lingologos_refinge/faults.py plants faults to show this (poison, confess, blind, crash).
13. Running it
Install the requirements (pip install -r requirements.txt), then from this folder:
python tools/paraphrase.py "If the weather is bad, we will stay home." --lang en --audit
python tools/paraphrase.py --file text.txt --lang auto --rounds 3 --seed 7 --json
python tools/orchestrated_session.py "Si llueve, nosotros no saldremos." --lang es
python tools/corpus_check.py
python tools/corpus_check.py --lang it --update
python tools/make_nodes.py --check
python -m pytest tests -q
paraphrase.py runs the eleven steps in one process and re-solves every claim with Z3 after the step;
orchestrated_session.py runs the real thing: eleven processes per round started by the orchestrator of the
repository, with the claims re-solved by the verifier of the orchestrator. It copies the node folders to a
temporary directory to write the text into the seeds, and on Windows points a temporary copy of the topology at
agents/refinge_agent.cmd; both adaptations are printed. To run topology.json by hand, put the text in the
seed_payload.json of the nodes (the text field of the dossier after the @@REFINGE@@ marker). The
orchestrator itself is code of the repository and is not part of this folder: paraphrase.py, corpus_check.py
and the tests need nothing but Python and Z3.
corpus_check.py runs the 64 rows of problems/corpus.jsonl and compares each with what the bundle answered
when the row was recorded; --update records them again after a deliberate change, and --lang limits the run
to one language. Besides the recorded answer it checks, for every row, the properties the bundle promises
whatever the text: the reply has the same number of sentences as the text, every sentence keeps its ledger, and
no claim of any step was refused by the solver.
14. Coverage, measured twice
A paraphraser that only works on sentences written to be paraphrased proves nothing, so the bundle measures coverage on two batteries.
The graded corpus, problems/corpus.jsonl: 64 rows, 10 or more per language, each with a note saying why
the row is there and with the recorded state, assurance and reply. Rows are written to exercise a
mechanism as much as a word.
| lang | rows now | reworded now | reworded at the seed lexicons |
|---|---|---|---|
| en | 13 | 12 | 10 |
| es | 10 | 8 | 6 |
| it | 11 | 10 | 7 |
| zh | 10 | 8 | 6 |
| hi | 10 | 8 | 7 |
| ar | 10 | 8 | 6 |
| all | 64 | 54 (84%) | 42 (66%) |
The seed column is the same 64 rows replayed against the lexicons as they were when this bundle was first written, which are not in this folder; the two other columns are reproducible with the commands at the end of this section.
The plain battery, problems/natural.jsonl: 80 rows, one id per sentence, lang and text only. These are
sentences a person might really write -- buying a car, a party for a daughter, the village where someone grew
up -- chosen with no mechanism in mind and never graded by hand. Ten of them are technical writing (a kernel
panic, a notarial deed, cell respiration, a monetary policy note) and are there to be refused: a battery that
only contained winnable sentences would measure nothing. A sentence counts as reworded when the state is
PARAPHRASED or PARTIAL.
| lang | sentences | reworded at the seed | reworded now | floor in the test |
|---|---|---|---|---|
| en | 16 | 7 | 14 | 13 |
| es | 19 | 2 | 14 | 14 |
| it | 18 | 4 | 14 | 14 |
| zh | 9 | 2 | 9 | 8 |
| hi | 10 | 4 | 8 | 8 |
| ar | 8 | 2 | 8 | 7 |
| all | 80 | 21 (26%) | 67 (84%) | 64 |
The floors are in tests/test_coverage.py: a floor on the members of each lexicon, a floor on the sentences
reworded per language, a floor on the lines that must come back untouched (five, so the battery cannot quietly
turn into a list of winnable sentences), a test that replays every reworded sentence through the ledger and
fails if any ledger unit was lost, and a test that pins the pairs listed in section 15 as never allowed inside
one group. The floors sit at or a little under the measured numbers: they are there so that the day a group is
dropped and a language loses its hold on ordinary writing, a test says so. Spanish, Italian and Hindi now sit
exactly on their floor, so the next group dropped from one of them trips a test.
The remaining refusals are all of one kind. For every one of the 13 sentences the battery still returns
UNCHANGED, the number of admissible edits the rewrite engine finds is zero: there is no pair in the lexicon of
that language that the guards allow in that sentence. No sentence of the battery has an edit available and is
then refused by a critic, which is the reason the bounds of section 6 were left where they are: a lower novelty
floor would only let nearer rewrites through, and would buy no sentence that the lexicon cannot already reach.
Two limits explain the ten that were already refused when the battery was first measured; three more joined them
when the quality pass of section 15 dropped the only pair each of those sentences had, leaving one sentence with
no pair left to reword it in Spanish, one in Italian and one in Hindi. The first limit is that some ordinary words
simply have no partner:
English, Spanish and Italian each have one sentence in the battery about coffee, breakfast and the morning, and
none of those three words has a synonym a person would really write there -- espresso names a different drink,
and prima colazione wants an article the sentence does not carry. The second limit is the shape of the paradigm
columns: a Spanish or Italian verb group carries six forms (infinitive, third person present, preterite,
imperfect, participle, gerund), so a second person or a future form in the sentence is not a token the matcher
can see, whatever the group holds. Chinese gains where the writing system is generous instead: the words for the
morning and for breakfast, and the two short forms of the monetary sentence, are pairs of full words, and each
pair sits in one slot.
To measure it again yourself, without touching anything:
python tools/corpus_check.py # the graded corpus, each row against its recorded answer
python -m pytest tests/test_coverage.py -q # the battery, replayed against the floors above
The battery is a data file, not a command line input: tests/test_coverage.py is what replays its 80 lines
through pipeline.run, and it is where the two right hand columns of the table come from. Any single line of it
can be run by hand with python tools/paraphrase.py "<the sentence>" --lang <code>.
15. Enlarging a lexicon without breaking a promise
lexicon.validate runs in every test and refuses an entry that would let a bad candidate through. Every refusal
below is a rule that fired while the lexicons were being enlarged, with the entry that triggered it.
- A member of a group must carry the markers of the group. Every token of every member is scanned for
markers, and a marker inside one member and not another means the group would silently move meaning.
at oncecannot join a group withimmediately, becauseonceis a time marker.de vez en cuandois refused for the same reason, and都市cannot stand with城市in Chinese because都is a quantifier marker and the ledger would count one.بلا देर-style phrases are refused in Hindi becauseबिनाis a negation. - So a new synonym may have to become a marker too.
on account ofentered Englishcause,a lo mejorentered Spanishhedge,pressappocoentered Italianapprox,करीबentered Hindiapprox: the ledger of the sentence then counts the phrase in the language, which is what it is. - The same surface cannot be in two groups. A form in two groups would make
canonanswer two questions at once. This is also why an existing group cannot be re-added under a new id as a way of testing it. - A group member cannot be the connective of a clause frame, in either direction; a frame connects two clauses, it does not paraphrase a word.
- Italian nouns and adjectives of one group must start with the same sound class. The article of a noun is
rewritten only when the group says it may be, and
iltol'is not a change the bundle makes:lavorowithimpiegois refused,impresawithaziendapasses. The same rule protects Spanish and Italiangender:películacannot takefilme, which is masculine, andpueblohas no partner to join. - A
needs_detnoun is matched only right after a determiner, and a verb group is never matched right after a determiner.una gran empresablocksempresa, because the article is not next to the noun and the bundle cannot see what stands between them. Droppingneeds_detfrom a group lets the noun be matched anywhere the other guards allow, which is what the Spanish and Italian noun groups of this folder do now. - Chinese lexical members must be longer than one character, because the tokeniser cuts Chinese into characters and a single character member would match inside other words.
- A group member may not be a stopword or an abbreviation of its language, and an English lexical form may not be a name-like token.
- Arabic and Hindi nouns carry a gender where the article agrees, and Arabic
clitics: truesays that the prefixesال,و,ب,لmay sit in front of the member.
Three things the validator cannot see were found by running candidate pairs on sentences and reading what came back. They are the reason sixteen English groups, and eight groups in the other four languages, were written, probed and removed again:
- A verb takes the complement its partner may not take. English
thinknext tobelieveturned "nobody believed her" into "nobody thought her", becausethinkwants a clause andbelievetakes a person;helpnext toassistturned "she helped me move" into "she assisted me move";getnext toobtainoffered "obtain the train";eatnext todineoffered "dine an apple"; Italianportarenext totrasportareoffered "trasportare a penna", which is a cargo, not a pen. - A connective carries what stands next to it. Arabic
رغمnext toمع أنturned "رغم اعتراضه" into "مع أن اعتراض", a clause conjunction sitting in front of a noun; Italiandurantenext tonel corso diturned "durante la riunione" into "nel corso di la riunione", because the second phrase already holds the article of the noun. - An adjective is licensed by what it is said of. Spanish
fuertenext toresistenteoffered "café resistente"; Chinese完成next to达成offered "达成作业"; Arabicقويnext toمتينoffered "امرأة متينة", which is a word for materials. - A noun that names an event is not a noun that names a state. Spanish
problemanext tocontratiempoturned "un problema de salud" into "un contratiempo de salud", and Italianproblemanext tocontrattempodid the same thing: a setback is something that happens to a plan, a health problem is something a person has. Italianattenzionenext toaccuratezzaturned "l'attenzione dei media" into "l'accuratezza dei media"; Englishspecialnext tounusualoffered "an unusual offer", which is a strange offer rather than a preferential one. All four are inFORBIDDEN_PAIRS.
Those pairs are named in tests/test_coverage.py as FORBIDDEN_PAIRS, and a test fails if any of them is put
back in one group.
The pairs that were written and then dropped for one of these reasons are not mistakes of the validator: they are the promise. A pair that the validator refuses is a pair that would have made the canonical form of a sentence equal to the canonical form of a sentence whose meaning had moved.
The same protocol was run on the groups added since the sizes in section 11, and it dropped nine more, each on
a sentence run through the bundle. English communicate next to convey offered "he conveyed with the client",
English watch next to observe offered "observe out for the dog", English landscape next to scenery
offered "he painted a scenery", a word that takes no article, and English beautiful next to pretty offered
"it was beautiful good", the pair the first bullet of section 16 already warns about; Spanish quedar next to
permanecer offered "me permanece bien la camisa", and contar next to narrar offered "narra el dinero",
where the money is counted, not told; Italian negozio next to magazzino offered "il pane al magazzino", a
shop that is a warehouse, and parlare next to dialogare offered "dialogato del problema"; Hindi बच्चा
next to शिशु offered "दो शिशु", where the numeral wants the oblique plural. Two of the dropped pairs left a
replacement behind that the same probes cleared: Spanish narrar/relatar and Italian
conversare/chiacchierare.
The protocol was run a third time, and it dropped twenty more groups -- eleven in English, four in Italian,
three in Spanish, one in Arabic and one in Hindi -- each on a sentence run through the bundle and each now named
in FORBIDDEN_PAIRS. English led, and its cases are the cleanest. near next to close to offered "we had a
close to miss on the highway", because near miss is one phrase and close to miss is none; about next to
around offered "how around a cup of tea?", where how about is the fixed suggestion; cold next to chilly
offered "I caught a chilly last week", the cold being the illness and chilly the weather; fast next to quick
offered "he was quick asleep when I left" and "American quick food", two set phrases; cash next to money
offered "he saves cash every month", cash being one kind of money and not another name for it; during next to
throughout stretched "she called during the meeting" over the whole of it; and vacation next to holiday was
dropped on the public holiday, which is a holiday and is never a vacation. Four more are a matter of register:
room next to chamber offered "she cleaned her chamber yesterday", companion next to friend offered "my
companion Anna called yesterday", query next to question offered "a query around the schedule", and inside
next to within offered "come within, it is raining", each a word from a novel's register standing in for an
ordinary one.
The other four languages gave the same lesson in other scripts. Italian ricco next to benestante offered "il
curry è benestante di spezie", benestante naming a wealthy person and not a spiced dish; caro next to costoso
offered "un costoso amico mi ha scritto", costoso pricing an object where caro is affection; and vicino a next
to accanto a was dropped on the fused article and on the sense of being about to do something, neither of which
accanto a can carry. Spanish cerca de next to al lado de moved "vivo cerca de la estación" from near to
beside, durante next to a lo largo de stretched "me llamó durante la cena" over its length, and companero
next to colega offered "mi colega de piso" for a flatmate. Arabic دائما next to على الدوام replaced a plain
adverb of frequency with a literary phrase that names a permanent state, and Hindi छोटी next to नन्ही turned
"उम्र अभी छोटी है", where the age is still young, into "उम्र अभी नन्ही है", where नन्ही names physical smallness.
One group was dropped for a different reason. Italian gentile next to garbato never fired at all. The
sentence it was tried on came back UNCHANGED, because gentile is written the same for the masculine and the
feminine singular, so whenever the matcher meets it it cannot tell which slot of the group it has met, and the
guards refuse the edit in every context. A group that can never rewrite a sentence is not a synonym pair, and it
was removed rather than left in the lexicon to be read as one.
16. What this does not do
- It does not understand the text. A replacement is safe only as far as the lexicon says the two words are
interchangeable, and the lexicon cannot see context.
filmandmovieare one group; a word with several senses used in the sense the lexicon does not have is replaced wrongly and passes every check. The guards (needs_det,comma_after, collocations, a verb group is never matched right after a determiner) reduce that risk, and none removes it. This is also why the lexicon holds no pair whose second word has a second life in another part of speech or takes a different complement:prettystands apart frombeautiful, becauseprettyalso means "fairly", and every pair section 15 lists was added first, run on a sentence, and taken out again. - Coverage is measured, and uneven. The figures are in section 14. They are the proportion on two batteries of short, ordinary sentences; on running text with names, numbers and technical vocabulary it is lower. A sentence with no admissible edit costs no round and comes back as it was.
- It does not restructure sentences. The only structural change is turning a subordinate clause round. There is no active to passive, no splitting or joining of sentences, no reordering of a list.
- Coreference is guarded, not resolved. Sentences with a third person pronoun, or with a dropped subject in
Spanish, Italian and Chinese, are never turned round; a pronoun in a sentence that is only reworded stays as
it was, and the words around it may change who it seems to point at in a longer text. Pronouns that are also
articles (Spanish
la,lo, Italianla,lo,gli,le) are not on the pronoun list and cannot block a swap. - Names are heuristic. A capitalised word inside a sentence is a name. A name at the start of a sentence is
not recognised as one, so a sentence that starts with a name is never turned into one that has the name in
the middle. A name that is also a word of a lexicon group can be replaced when it starts a sentence, unless
another capitalised word follows it (
Doctor Smithis protected, a loneDoctorat the start is not). - Register, tone and style are not checked.
kidforchild,commenceforstartandphysicianfordoctorare meaning preserving in the lexicon and can be wrong in register. The Hindi pairघरandमकानkeeps the ledger and the canonical form, and does not keep the idiom ofघर पर रहना. - Arabic is thin. Verbs are not covered, clitic handling is limited to the prefixes listed above, vowel marks and alef variants are ignored when matching but the replacement is written without them.
- Hindi and Chinese have no word segmentation. Hindi is split on spaces; Chinese on characters, matched against multi character members, so a member can match inside a longer word.
- Sentence boundaries are rules, not a model: a lexicon list of abbreviations, no ellipsis handling beyond not splitting before a lowercase letter.
- Long texts are refused (6000 characters) because the dossier travels inside every message.
- No GF compilation. The
grammar.gffiles describe the notes of the nodes and have not been compiled.
17. Tests
python -m pytest tests -q
The tests cover: the tokeniser and the segmenter (random texts rebuild byte for byte), the validator of the lexicons (each rule has a test that breaks a lexicon on purpose), the rewrite engine (articles, case, fixed phrases, clause swaps and every guard), the ledger and the form rules, the negotiation (the recorded corpus, repeatability, a property test on random texts of lexicon words in every language: ledger and canonical form preserved, claims confirmed), the escalation over rounds, the veto feedback, the planted faults, the topology document and its static validation by the orchestrator, the node shim across a process boundary, one real orchestrated session per scenario (clean, poisoned, crashed, and one per script), the coverage of the lexicons on the plain battery and the ledger of every reworded sentence of it, and the conventions of the repository (ASCII only in Python sources, no imports beyond the standard library, Z3 and the hub client of the publish tool).
18. Extending the bundle and the repository boundary
To add a word, add a group or a member to lexicon/<lang>.json and run python -m pytest tests -q: the
validator refuses what would break a promise, and section 15 shows the refusals that fire most often. To add a
clause frame, add a swaps entry; its connective must be a condition, time, cause or contrast marker and may
not be a group member. After any of that, run tools/corpus_check.py, read the differences row by row, and
record them again with --update; then check the floors of tests/test_coverage.py, which go up when a
language gets hold of more of ordinary writing and fail when it loses one.
This dataset is 71 files: the ten modules of lingologos_refinge/, the six lexicons, the 64 rows of the
graded corpus with the answer the bundle gave for each, the 80 plain sentences of the battery, the
eleven node definitions with their SMT claims, the topology, the five tools, and the nine test files
with their conftest. It is published at https://huggingface.co/datasets/tailot/lingologos-refinge. In the
repository the folder is ignored by git: what the project carries is the link in the table of published
resources at the top of its README, and the documentation of the asset lives here. Sections 20 to 23
below were written for a reader who met the bundle here, where the folders of the repository are not.
19. Publishing this folder
tools/publish_dataset.py uploads this folder to the hub as the dataset tailot/lingologos-refinge and checks that what
landed is what is here. It travels with the folder so that the card and the tree beside it can be rebuilt and
pushed again from any copy of it; nothing else in the folder imports the hub client, and no test touches the
network. The token is never a command line argument: the tool reads the name of an environment
variable and takes the value from it. The counts it expects are pinned in the file: 71 files, 64 rows of the
graded corpus, 80 rows of the plain battery. A number that does not match stops the run before anything is
uploaded.
python tools/publish_dataset.py --plan # build the card, upload nothing
HF_TOKEN=... python tools/publish_dataset.py # upload and verify
python tools/publish_dataset.py --prune # also drop files this folder no longer holds
The tool stages a copy of the tree, replaces this README with the dataset card -- the same text with the passages that only make sense in the repository that produced it rewritten, and with the YAML front matter the hub needs for the language tags and the two configs -- uploads the staged tree, lists the objects of the dataset, and compares every file with the local copy by sha256, this README included, because a silent skip would leave the most read file of the dataset unverified.
20. The fields of the two data files
problems/corpus.jsonl holds 64 lines, one JSON object each. A line was recorded by running this bundle on the
sentence and storing what it answered, so the file is a promise: the same code, the same lexicons and the same
seed must answer the same way. The fields:
| Field | Lines | What it holds |
|---|---|---|
id |
64 | ar-01 to ar-10, en-01 to en-13, es-01 to es-10, hi-01 to hi-10, it-01 to it-11, zh-01 to zh-10 |
lang |
64 | en 13, it 11, ar 10, es 10, hi 10, zh 10 |
note |
64 | one English sentence saying what the row is there to exercise: a quoted span kept (6 rows), nothing in the lexicon applies (5), a protected address (6), a dropped subject that forbids the clause turn round (2), a connective with its comma after a semicolon (2), and 40 further notes covering the remaining 43 rows |
text |
64 | the sentence, in its own language and script |
state |
64 | PARAPHRASED 52, UNCHANGED 10, PARTIAL 2 |
assurance |
64 | 2 on 52 lines, 0 on 10, 1 on the 2 PARTIAL lines |
reply |
64 | the text the bundle returned: the paraphrase when the state supports one, the text itself otherwise |
The 10 UNCHANGED lines are not failures to hide: they are sentences for which the lexicon of that language
has no admissible edit at all, and the bundle returns the sentence and says so. Section 14 gives the proportion
per language, and tools/corpus_check.py re-runs every row and reports a row that no longer answers as recorded.
problems/natural.jsonl holds the 80 lines of the plain battery of section 14: sentences a person really might
write, with no mechanism in mind, plus ten lines of technical writing the lexicons are not expected to reach. Its
fields are only id (nat-ar-01 to nat-ar-08, nat-en-01 to nat-en-16, nat-es-01 to nat-es-19,
nat-hi-01 to nat-hi-10, nat-it-01 to nat-it-18, nat-zh-01 to nat-zh-09), lang and text. It
records no answer on purpose: the answer is what the bundle produces now, and tests/test_coverage.py is the
code that replays it against the per-language floors of section 14. A reader
who wants the answer for one line runs python tools/paraphrase.py "<text>" --lang <code>.
21. Loading this dataset
The graded corpus, with the recorded answer of the bundle:
from datasets import load_dataset
rows = load_dataset("tailot/lingologos-refinge", "corpus")["train"]
print(rows[0]["text"])
print(rows[0]["state"], rows[0]["assurance"])
print(rows[0]["reply"])
The plain battery, sentences to try the bundle on:
battery = load_dataset("tailot/lingologos-refinge", "natural")["train"]
print(battery[0]["lang"], battery[0]["text"])
The bundle as code is not a package on an index: download the folder, then from inside it
pip install -r requirements.txt
python tools/paraphrase.py "If the weather is bad, we will stay home." --lang en --audit
python tools/corpus_check.py
python -m pytest tests -q
Everything above runs offline. Only tools/orchestrated_session.py needs the orchestrator of the repository,
which is not in this dataset; python -m pytest tests -q runs the sessions that do not need it.
22. Rights
No license is declared for this dataset, its lexicons, its problems or its code: reuse is not granted by this
page. The six lexicons, the 64 rows of the graded corpus, the 80 lines of the plain battery, the grammar
specifications, the eleven node definitions with their SMT claims and the Python sources were written inside the
LingoLOGOS project. Ask before redistributing or building on them, and expect the answer to be yes for academic
work with attribution. Z3 is a separate product with its own license and is not redistributed here; z3-solver
is only named as a dependency in requirements.txt. The lexicons of Arabic, Hindi and Chinese describe written
varieties as this project needs them for short ordinary sentences: they are not a general purpose dictionary of
those languages, and section 16 states what they do not cover.
23. Citation
@misc{lingologos_refinge,
title = {LingoLOGOS refinge: eleven nodes paraphrase a sentence in Arabic, English, Spanish, Hindi, Italian and Chinese, and state the assurance of the result},
author = {LingoLOGOS project},
year = {2026},
url = {https://huggingface.co/datasets/tailot/lingologos-refinge},
note = {bundle of the refinge folder of the LingoLOGOS repository: six lexicons with 463 groups, 994
member pairs and 2211 word forms, a 64-row graded corpus with the recorded answer of the bundle, a
80-sentence battery of ordinary writing whose coverage was measured before and after enlarging the
lexicons (21/80 to 67/80), an eleven node topology with four independent critics, a meaning ledger
and a canonical form as the two promises, three negotiation rounds with veto feedback, an SMT claim
per node re-solved by a referee, planted faults, and 128 tests}
}
- Downloads last month
- 67