Twinkle HubTwinkle Hub

Taiwan statute · keyword search over article text

tw_statute_search_text

Statutes · same family🇹🇼 Taiwanread-only

關鍵字 / Keywords: 法條 全文搜尋 statute text search 條文 內文 關鍵字 法規 命令 辦法 細則

Scope: Taiwan (ROC · 中華民國) statute full-text search only.

【EN keywords】Taiwan statute keyword search · full-text search over article body · Taiwan legal statute lookup by content · 中華民國 法條 全文檢索

【何時用】用戶只知概念/關鍵字·不知法規名或條號時 · 想找哪些台灣法條在講這件事。e.g.「哪條法規規範職業災害補償?」「個資外洩責任在哪條?」「哪條規定共有物分割?」

【Topics covered · descriptive keyword list】哪條法規 · 哪個法條 · keyword search 法規 · 全文檢索 · 條文內容 · 關鍵字找條文 · 法規內文 · 職災 · 個資 · 消保 · etc.

【不要一般常識答】不要憑印象說「應該是 X 法第 N 條」· 一律用本 tool 從全 corpus 拿真實 hit。

範圍:台灣法律與命令(辦法/細則/標準)現行條文。比對:多個關鍵字以空白分隔,須全部出現在條文內容或法規名稱中(子字串比對,不切詞);忽略空白、標點、臺/台與中文/阿拉伯數字條號差異;自動展開常見簡稱(個資法→個人資料保護法,列在 expanded_terms)。排序:憲法、法律優先於命令·已廢止法規排最後並標示·同位階內法規名稱就命中的優先(「個資法 告知」先列個資法本身的條文),再依關鍵字出現密度。

Args: query: Chinese/English text · 至少 2 字元 · 多個關鍵字以空白分隔 law_name: Optional filter · e.g. '民法' / '個資法' / '碳費收費辦法' · 限縮到單一法規 limit: 1-50 · default 20 level: Optional · '憲法' / '法律' / '命令' · 限定位階(找施行細則、辦法時用「命令」) expand_synonyms: 是否展開常見簡稱 · default True

Returns: {found, query, total, n_hits, hits: [{law_name, pcode, level, article, article_suffix, score, text_excerpt (匹配詞 ± 100 chars), abolished?}, ...], expanded_terms?}

Parameters

ParamTypeDescription
query *string—
law_namestring—
limitinteger—
levelstring—
expand_synonymsboolean—
Raw JSON schema
{
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "law_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Law Name"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    },
    "level": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Level"
    },
    "expand_synonyms": {
      "default": true,
      "title": "Expand Synonyms",
      "type": "boolean"
    }
  },
  "required": [
    "query"
  ],
  "title": "tw_statute_search_textArguments",
  "type": "object",
  "additionalProperties": false
}

How to call

Starter — params in the table above
tw_statute_search_text({ query: "…" })