1. Introduction
+For now, see the explainer.
+From 3e189a33bc6e449cd864432b4aa3bfb5722b7bcf Mon Sep 17 00:00:00 2001 From: QueenieZqq <46456163+QueenieZqq@users.noreply.github.com> Date: Thu, 27 Feb 2025 20:42:04 +0000 Subject: [PATCH 01/22] Fix index.bs markup SHA: cba99261c9603d0dfc386b85de606b4b936636e9 Reason: push, by QueenieZqq Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- index.html | 496 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 496 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..50d061b --- /dev/null +++ b/index.html @@ -0,0 +1,496 @@ + +
+ + +Copyright © 2025 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
+The proofreader API provides high-level interfaces to call on browser or operating system’s built-in language model to help with proofreading tasks.
+For now, see the explainer.
+Conformance requirements are expressed + with a combination of descriptive assertions + and RFC 2119 terminology. + The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” + in the normative parts of this document + are to be interpreted as described in RFC 2119. + However, for readability, + these words do not appear in all uppercase letters in this specification.
+All of the text of this specification is normative + except sections explicitly marked as non-normative, examples, and notes. [RFC2119]
+Examples in this specification are introduced with the words “for example”
+ or are set apart from the normative text
+ with class="example",
+ like this:
Informative notes begin with the word “Note”
+ and are set apart from the normative text
+ with class="note",
+ like this:
Note, this is an informative note.
+
+
+
+
Copyright © 2025 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
+Copyright © 2025 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply. +
Examples in this specification are introduced with the words “for example”
or are set apart from the normative text
with class="example",
- like this:
This is an example of an informative example.
+ + +This is an example of an informative example. +
Informative notes begin with the word “Note”
and are set apart from the normative text
with class="note",
- like this:
Note, this is an informative note.
- Draft Community Group Report,
+ Copyright © 2025 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
+ Copyright © 2026 the Contributors to the Proofreader API Specification, published by the Web Machine Learning Community Group under the W3C Community Contributor License Agreement (CLA).
+A human-readable summary is available.
+
Proofreader API
-
+ More details about this document
Proofreader API
+ This specification was published by the Web Machine Learning Community Group. + It is not a W3C Standard nor is it on the W3C Standards Track. + + Please note that under the + W3C Community Contributor License Agreement (CLA) + there is a limited opt-out and other conditions apply. + + Learn more about + W3C Community and Business Groups. +
For now, see the explainer.
+For now, see the explainer.
+[+Exposed =Window ,SecureContext ] +interface { +Proofreader static Promise <Proofreader >(create optional ProofreaderCreateOptions = {}); +options static Promise <Availability >(availability optional ProofreaderCreateCoreOptions = {}); + +options Promise <ProofreadResult >( +proofread DOMString , +input optional ProofreaderProofreadOptions = {} + ); + +options readonly attribute boolean ; +includeCorrectionTypes readonly attribute boolean ; + +includeCorrectionExplanations readonly attribute FrozenArray <DOMString >?; +expectedInputLanguages readonly attribute DOMString ?; +}; + +outputLanguage dictionary { +ProofreaderCreateCoreOptions boolean =includeCorrectionTypes false ; +boolean =includeCorrectionExplanations false ; + +sequence <DOMString >; +expectedInputLanguages DOMString ; +}; + +outputLanguage dictionary :ProofreaderCreateOptions ProofreaderCreateCoreOptions { +AbortSignal ; +signal CreateMonitorCallback ; +}; + +monitor dictionary { +ProofreaderProofreadOptions AbortSignal ; +}; + +signal dictionary { +ProofreadResult DOMString ; +correctedInput sequence <ProofreadCorrection >; +}; + +corrections dictionary { +ProofreadCorrection unsigned long long ; +startIndex unsigned long long ; +endIndex DOMString ; +correction sequence <CorrectionType >; +type DOMString ; +}; + +explanation enum {CorrectionType ,"spelling" ,"punctuation" ,"capitalization" ,"preposition" ,"missing-words" }; +"grammar"
[Exposed =Window ,SecureContext ] +interface :CreateMonitor EventTarget { +attribute EventHandler ; +}; + +ondownloadprogress callback =CreateMonitorCallback undefined (CreateMonitor ); + +monitor enum { +Availability , +"unavailable" , +"downloadable" , +"downloading" +}; +"available"
[+ + + \ No newline at end of file From 094df452b482d1fb2a31780d735925c77a074fa6 Mon Sep 17 00:00:00 2001 From: Reilly GrantExposed =Window ,SecureContext ] +interface { +Proofreader static Promise <Proofreader >(create optional ProofreaderCreateOptions = {}); +options static Promise <Availability >(availability optional ProofreaderCreateCoreOptions = {}); + +options Promise <ProofreadResult >( +proofread DOMString , +input optional ProofreaderProofreadOptions = {} + ); + +options readonly attribute boolean ; +includeCorrectionTypes readonly attribute boolean ; + +includeCorrectionExplanations readonly attribute FrozenArray <DOMString >?; +expectedInputLanguages readonly attribute DOMString ?; +}; + +outputLanguage dictionary { +ProofreaderCreateCoreOptions boolean =includeCorrectionTypes false ; +boolean =includeCorrectionExplanations false ; + +sequence <DOMString >; +expectedInputLanguages DOMString ; +}; + +outputLanguage dictionary :ProofreaderCreateOptions ProofreaderCreateCoreOptions { +AbortSignal ; +signal CreateMonitorCallback ; +}; + +monitor dictionary { +ProofreaderProofreadOptions AbortSignal ; +}; + +signal dictionary { +ProofreadResult DOMString ; +correctedInput sequence <ProofreadCorrection >; +}; + +corrections dictionary { +ProofreadCorrection unsigned long long ; +startIndex unsigned long long ; +endIndex DOMString ; +correction sequence <CorrectionType >; +type DOMString ; +}; + +explanation enum {CorrectionType ,"spelling" ,"punctuation" ,"capitalization" ,"preposition" ,"missing-words" }; + +["grammar" Exposed =Window ,SecureContext ] +interface :CreateMonitor EventTarget { +attribute EventHandler ; +}; + +ondownloadprogress callback =CreateMonitorCallback undefined (CreateMonitor ); + +monitor enum { +Availability , +"unavailable" , +"downloadable" , +"downloading" +}; + +"available"