Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SpellingCorrection

import type { SpellingCorrection } from "https://googleapis.deno.dev/v1/jobs:v4.ts";

Spell check result.

interface SpellingCorrection {
corrected?: boolean;
correctedHtml?: string;
correctedText?: string;
}

§Properties

§
corrected?: boolean
[src]

Indicates if the query was corrected by the spell checker.

§
correctedHtml?: string
[src]

Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "..." html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software engineer".

§
correctedText?: string
[src]

Correction output consisting of the corrected keyword string.