spellcheck

โดย brave

ใช้สำหรับแก้ไขการสะกดคำ ส่งคืนคำค้นหาที่แก้ไขแล้วหากสะกดผิด จุดสิ้นสุดการค้นหาส่วนใหญ่มีฟังก์ชันตรวจสอบการสะกดในตัว ใช้เฉพาะสำหรับการทำความสะอาดคำค้นหาก่อนการค้นหาหรือ…

npx skills add https://github.com/brave/brave-search-skills --skill spellcheck

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)

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

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

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

Parameters

ParameterTypeRequiredDefaultDescription
qstringYesQuery 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

{
  "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

Skills เพิ่มเติมจาก brave

pr
brave
Create a pull request for the current branch using `gh`.
official
add-best-practice
brave
เพิ่มแนวปฏิบัติที่ดีที่สุดใหม่ลงในเอกสารที่เหมาะสม ตรวจสอบรายการซ้ำ
official
check-upstream-flake
brave
ตรวจสอบว่าการทดสอบที่ล้มเหลวเป็นความผิดพลาดต้นทางที่รู้จักใน LUCI Analysis ของ Chromium หรือไม่
official
clean-branches
brave
ลบสาขาในเครื่องที่ PR ถูกรวมเข้ากับต้นทางแล้ว ตรวจสอบ PR ของ GitHub
official
fix-bp-docs
brave
ตรวจสอบและแก้ไขเอกสารแนวทางปฏิบัติที่ดีที่สุดสำหรับการอ้างอิงที่ล้าสมัย ข้อมูลซ้ำซ้อน และสิ่งที่ล้าสมัย
official
force-push-downstream
brave
บังคับพุชสาขาและสาขาปลายน้ำทั้งหมดไปยัง origin ตรวจจับอัตโนมัติ
official
impl-review
brave
นำข้อเสนอแนะจากการตรวจสอบไปปรับใช้กับ Pull Request โดยเช็คเอาท์สาขาและนำไปใช้
official
make-ci-green
brave
เรียกใช้ CI jobs ที่ล้มเหลวอีกครั้งสำหรับ PR brave/brave-core ตรวจจับขั้นตอนที่ล้มเหลวและ
official