dsh-lawcite-adapter 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README-es.md +8 -0
- package/README-hi.md +8 -0
- package/README-pt.md +8 -0
- package/README-zh.md +8 -0
- package/README.md +15 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
- Add a demo card to the README: one terminal shot of this plugin's real output
|
|
6
|
+
over its own test fixture, plus the DSH Market badge.
|
|
7
|
+
|
|
8
|
+
The card is generated by running this repository's check core over a committed
|
|
9
|
+
fixture and rendering the report it returned, so the findings, rule ids, cited
|
|
10
|
+
documents and "not obtained" notes are the plugin's own output rather than an
|
|
11
|
+
artist's impression. In a family whose claim is that it never fabricates a
|
|
12
|
+
citation, a hand-drawn screenshot would undercut the thing being demonstrated.
|
|
13
|
+
|
|
14
|
+
Added to all five READMEs together, which `check:readmes` requires.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 0.2.3
|
|
18
|
+
|
|
19
|
+
- Correct the severity and basis-kind cells in `## What it does` so they
|
|
20
|
+
match the rule pack. The upgrade pass of 2026-10-07 changed the packs and
|
|
21
|
+
left this table showing the previous basis kind, so the README disagreed
|
|
22
|
+
with the plugin about what a rule does.
|
|
23
|
+
|
|
3
24
|
## 0.2.2
|
|
4
25
|
|
|
5
26
|
- Rework the README first screen. The H1 now names what the plugin checks rather
|
package/README-es.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-lawcite-adapter — Verificación de citas de artículos legales y de los elementos del documento jurídico
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-lawcite-adapter` lee un inventario de citas de artículos legales —la cabecera del documento más una fila por cita— y comprueba la verificabilidad y los elementos documentales de ese propio inventario: que cada cita indique la ley y el número de artículo, que el número de artículo siga la forma china, que se haya transcrito el texto citado, que el estado de vigencia provenga de su propio vocabulario, que la cita indique dónde se usa y qué argumenta, que la cabecera del documento declare su título y su tipo, que los números de cita no se repitan y que no sobreviva ningún marcador de plantilla en la columna del texto citado. No verifica que una ley exista, que esté vigente, que no haya sido modificada o derogada, ni que se aplique al caso.
|
|
4
6
|
|
|
7
|
+
## Cómo se ve la salida
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Salida real de este plugin sobre su propio fixture de prueba `LC-001` — no es un montaje. El paquete de reglas no inventa citas, así que cada hallazgo nombra la cláusula aplicada y advierte que su texto no se obtuvo.
|
|
12
|
+
|
|
5
13
|
## Qué responde
|
|
6
14
|
|
|
7
15
|
| Usted pregunta | Qué responde |
|
package/README-hi.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-lawcite-adapter — विधिक उद्धरण और दस्तावेज़ के तत्वों की जाँच
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-lawcite-adapter` एक विधिक-उद्धरण सूची पढ़ता है — दस्तावेज़ का हेडर और प्रत्येक उद्धरण की एक पंक्ति — और उसी सूची की सत्यापन-योग्यता तथा दस्तावेज़-तत्वों की जाँच करता है: क्या प्रत्येक उद्धरण में विधि का नाम और अनुच्छेद संख्या लिखी है, क्या अनुच्छेद संख्या मानक चीनी रूप में है, क्या उद्धृत पाठ लिखा गया है, क्या प्रभावी-स्थिति आपकी अपनी शब्दावली से ली गई है, क्या उद्धरण में यह लिखा है कि वह कहाँ प्रयुक्त है और क्या तर्क देता है, क्या दस्तावेज़ का हेडर अपना शीर्षक और प्रकार बताता है, क्या उद्धरण संख्याएँ दोहराई नहीं गई हैं, और क्या उद्धृत पाठ के कॉलम में कोई अपूरित प्लेसहोल्डर बचा नहीं है। यह नहीं जाँचता कि कोई विधि वास्तव में मौजूद है, प्रभावी है, संशोधित या निरस्त नहीं हुई, या उस मामले पर लागू होती है।
|
|
4
6
|
|
|
7
|
+
## आउटपुट कैसा दिखता है
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
इस प्लगइन का अपने ही `LC-001` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
|
|
12
|
+
|
|
5
13
|
## यह किन सवालों का जवाब देता है
|
|
6
14
|
|
|
7
15
|
| आपका सवाल | इसका जवाब |
|
package/README-pt.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-lawcite-adapter — Verificação de citações de artigos legais e dos elementos do documento jurídico
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-lawcite-adapter` lê um inventário de citações de artigos legais —o cabeçalho do documento mais uma linha por citação— e verifica a verificabilidade e os elementos documentais desse próprio inventário: se cada citação indica a lei e o número do artigo, se o número do artigo segue a forma chinesa, se o texto citado foi transcrito, se a situação de vigência vem do seu próprio vocabulário, se a citação indica onde é usada e o que argumenta, se o cabeçalho do documento declara o título e o tipo, se os números de citação não se repetem e se não resta nenhum marcador de modelo na coluna do texto citado. Não verifica se uma lei existe, se está em vigor, se não foi alterada ou revogada, nem se se aplica ao caso.
|
|
4
6
|
|
|
7
|
+
## Como é a saída
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Saída real deste plugin sobre o seu próprio fixture de teste `LC-001` — não é uma simulação. O pacote de regras não inventa citações, por isso cada achado nomeia a cláusula aplicada e avisa que o seu texto não foi obtido.
|
|
12
|
+
|
|
5
13
|
## O que ele responde
|
|
6
14
|
|
|
7
15
|
| Você pergunta | O que ele responde |
|
package/README-zh.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-lawcite-adapter — 法条引用与文书要素核对
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-lawcite-adapter` 读取一份法条引用清单——表头加每处引用一行——核对这份清单自身的可核验性与文书要素:每处引用是否写明法律名称与条号、条号是否写成规范的中文形式、是否抄录了引用原文、效力状态是否取自本机构配置的取值、是否写明引用位置与论证作用、文书表头是否声明标题与文书类型、引用编号是否重复、引用原文栏是否残留未替换的占位符。它不核验法条是否真实存在、是否现行有效、是否已被修订或废止、是否适用于本案。
|
|
4
6
|
|
|
7
|
+
## 实际输出长什么样
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
本插件对自己 `LC-001` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
|
|
12
|
+
|
|
5
13
|
## 它回答什么问题
|
|
6
14
|
|
|
7
15
|
| 你会问 | 它怎么答 |
|
package/README.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-lawcite-adapter — Statute citation and legal document element check
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-lawcite-adapter` reads one statute-citation inventory — the document header plus one row per citation — and checks that inventory's own verifiability and document elements: that each citation states its law and article number, that the article number follows the Chinese form, that a direct quotation has been transcribed into the quotation column, that the power status comes from your own vocabulary, that the citation states where it is used and what it argues, that the document header names its title and type, that citation numbers are not repeated, and that no unreplaced placeholder survives in the quotation column. It does not verify that a statute exists, that it is currently in force, that it has not been amended or repealed, or that it applies to the case.
|
|
4
6
|
|
|
7
|
+
## What it looks like
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Real output from this plugin over its own `LC-001` test fixture — not a mock-up. The rule pack ships no invented quotations, so a finding names both the clause it applied and the fact that the clause text was not obtained.
|
|
12
|
+
|
|
5
13
|
## What it answers
|
|
6
14
|
|
|
7
15
|
| You ask | What it answers |
|
|
@@ -82,15 +90,14 @@ citation — applies a versioned rule pack, and returns a report.
|
|
|
82
90
|
|
|
83
91
|
| Rule | Check | Severity | Basis kind |
|
|
84
92
|
|---|---|---|---|
|
|
85
|
-
| `LC-001` | the law name and article number are stated |
|
|
86
|
-
| `LC-002` | the article number follows the Chinese form |
|
|
87
|
-
| `LC-003` | a direct quotation is transcribed |
|
|
93
|
+
| `LC-001` | the law name and article number are stated | info | local |
|
|
94
|
+
| `LC-002` | the article number follows the Chinese form | info | local |
|
|
95
|
+
| `LC-003` | a direct quotation is transcribed | info | local |
|
|
88
96
|
| `LC-004` | the power status comes from your vocabulary (off by default) | info | local |
|
|
89
|
-
| `LC-005` | the citation states its location and purpose |
|
|
90
|
-
| `LC-006` | the document names its title and type |
|
|
91
|
-
| `LC-007` | citation numbers are unique |
|
|
92
|
-
| `LC-008` | the quotation column holds no unreplaced placeholder |
|
|
93
|
-
|
|
97
|
+
| `LC-005` | the citation states its location and purpose | info | local |
|
|
98
|
+
| `LC-006` | the document names its title and type | info | local |
|
|
99
|
+
| `LC-007` | citation numbers are unique | info | local |
|
|
100
|
+
| `LC-008` | the quotation column holds no unreplaced placeholder | info | local |
|
|
94
101
|
## Install
|
|
95
102
|
|
|
96
103
|
```sh
|