Spelling Suggestion
eutils_espellCheck spelling of a query against an NCBI Entrez database and retrieve the suggested correction. Use when a search returns no results due to a suspected typo.
Instructions
Get NCBI's spelling suggestion for a query in one database.
Args:
db (string): database to check against, for example "pubmed".
term (string): query to check, for example "breast cancr".
response_format ('markdown' | 'json'): output format. Default 'markdown'.
Returns: { database, query, corrected_query, changed }
Examples:
Use when: a search returned no results and you suspect a typo
Use when: "did you mean" for a query -> term="diabetis"
Don't use when: the query is a structured field search; ESpell works on plain terms
Error Handling:
Reports changed=false when NCBI has no correction, rather than an error
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Entrez database to check the spelling against, for example "pubmed". | |
| term | Yes | Query whose spelling should be checked, for example "breast cancr". | |
| response_format | No | Output format: 'markdown' for human-readable text, or 'json' for machine-readable data. Default: 'markdown'. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| changed | Yes | ||
| database | Yes | ||
| corrected_query | Yes |