Spellcheck

brave/brave-search-skills/skills/spellcheck

作者 brave62793e0c49ed無授權條款183 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

USE FOR spell correction. Returns corrected query if misspelled. Most search endpoints have spellcheck built-in; use this only for pre-search query cleanup or "Did you mean?" UI.

僅含說明Writing & Content
AI 產生的概覽

呼叫 Brave Spellcheck API,回傳拼錯的搜尋查詢的更正版本。

功能
這個技能說明如何以查詢字串、語言與國家參數呼叫 Brave Spellcheck 端點,以及如何讀取 JSON 回應。它會回傳原始查詢與拼字更正建議,找不到更正時結果可能為空。它只是操作說明,並未附帶任何指令碼。
適用情境
適合在執行搜尋前清理或正規化使用者查詢,或需要向使用者顯示「您是不是要查?」建議時使用。它著重於搜尋前的查詢清理,而非已內建拼字檢查的搜尋。
執行需求
需要 Brave Search API 金鑰(透過 X-Subscription-Token 標頭傳送)、包含 Spellcheck 方案的訂閱,以及對 api.search.brave.com 的網路存取。未附帶指令碼。

Spellcheck

Requires API Key: Get one at https://api.search.brave.com

Plan: Included in the Spellcheck plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe

Quick Start (cURL)

bash
curl -s "https://api.search.brave.com/res/v1/spellcheck/search" \  -H "Accept: application/json" \  -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \  -G \  --data-urlencode "q=artifical inteligence" \  --data-urlencode "lang=en" \  --data-urlencode "country=US"

Endpoint

http
GET https://api.search.brave.com/res/v1/spellcheck/search

Authentication: X-Subscription-Token: <API_KEY> header

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes—Query to spell check (1-400 chars, max 50 words)
langstringNoenLanguage preference (2+ char language code, e.g. en, fr, de, pt-br, zh-hans). 51 codes supported
countrystringNoUSSearch country (2-letter country code or ALL)

Response Fields

FieldTypeDescription
typestringAlways "spellcheck"
query.originalstringThe input query as submitted
resultsarraySpell-corrected suggestions. May be empty when no correction is found
results[].querystringA corrected version of the query

Example Response

json
{  "type": "spellcheck",  "query": {    "original": "artifical inteligence"  },  "results": [    {      "query": "artificial intelligence"    }  ]}

Use Cases

  • Pre-search query cleanup: Check spelling before deciding which search endpoint to call
  • "Did you mean?" UI: Show users a corrected suggestion before running the search
  • Batch query normalization: Clean up user inputs in bulk

Notes

  • Built-in alternative: Web Search and LLM Context have spellcheck=true by default — use this standalone endpoint only when you need the correction before searching
  • Context-aware: Corrections consider the full query context, not just individual words

來源與署名

來源:brave/brave-search-skills位於skills/spellcheck提交62793e0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架