Twinkle HubTwinkle Hub

台灣法條新舊版對照 diff

tw_statute_diff

Textes de loi · 11 outils🇹🇼 Taïwanlecture seule

關鍵字 / Keywords: 法條 新舊法 對照 diff 修正比對 statute compare before-after 修法差異

【Region】Taiwan (ROC · 中華民國) 法條歷史。

【EN keywords】Taiwan statute diff · compare law text between dates · ROC statute change diff · 中華民國 法條 新舊對照 · 修法對照

【何時用】用戶想對照同一台灣法條在兩個時間點的差異 (新舊法對照 · 修正前後 diff)。

【Topics covered · descriptive keyword list】新舊法對照 · 修法對照 · 法條 diff · 修正前 vs 修正後 · statute diff

對照台灣法規某條在兩日期間的差異 · 兩個日期都採 latest-≤-date 語意 (跟 tw_statute_at_date 一致)。若兩者對到同版本 · changed=False。

Args: law_name, article: 見 tw_statute_at_date date_a: 舊日期 · "YYYY-MM-DD" or "YYYYMMDD" date_b: 新日期 · 同上

Returns: 若無差異: {changed: False, text, revision_date_a/b, ...} 若有差異: {changed: True, unified_diff, text_a, text_b, revision_date_a, revision_date_b, source_url_a/b, ...}

Paramètres

NomTypeDescription
law_name *string
article *string
date_a *string
date_b *string
Schéma JSON brut
{
  "properties": {
    "law_name": {
      "title": "Law Name",
      "type": "string"
    },
    "article": {
      "title": "Article",
      "type": "string"
    },
    "date_a": {
      "title": "Date A",
      "type": "string"
    },
    "date_b": {
      "title": "Date B",
      "type": "string"
    }
  },
  "required": [
    "law_name",
    "article",
    "date_a",
    "date_b"
  ],
  "title": "tw_statute_diffArguments",
  "type": "object"
}

Comment appeler

Amorce — paramètres dans le tableau
tw_statute_diff({ law_name: "…" })