Skip to content

Commit b0185a9

Browse files
authored
Update index.bs
1 parent 883a3fc commit b0185a9

File tree

1 file changed

+37
-41
lines changed

1 file changed

+37
-41
lines changed

index.bs

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Proofreader API
33
Shortname: proofreader
44
Level: None
55
Status: CG-DRAFT
6-
Goupr: webmachinelearning
6+
Group: webmachinelearning
77
Repository: webmachinelearning/proofreader-api
88
URL: https://webmachinelearning.github.io/proofreader-api
99
Editor: Qianqia (Queenie) Zhang, Google https://google.com, queeniezhang@google.com
@@ -17,18 +17,14 @@ Die On: warning
1717

1818
<pre class="anchors">
1919
urlPrefix: https://tc39.es/ecma402/; spec: ECMA-402
20-
type: dfn
21-
text: [[AvailableLocales]]; url: sec-internal-slots
22-
text: Unicode canonicalized locale identifier; url: sec-language-tags
23-
type: abstract-op
24-
text: LookupMatchingLocaleByBestFit; url: sec-lookupmatchinglocalebybestfit
25-
text: IsStructurallyValidLanguageTag; url: sec-isstructurallyvalidlanguagetag
26-
text: CanonicalizeUnicodeLocaleId; url: sec-canonicalizeunicodelocaleid
20+
type: dfn; text: [[AvailableLocales]]; url: sec-internal-slots
21+
type: dfn; text: Unicode canonicalized locale identifier; url: sec-language-tags
22+
type: abstract-op; text: LookupMatchingLocaleByBestFit; url: sec-lookupmatchinglocalebybestfit
23+
type: abstract-op; text: IsStructurallyValidLanguageTag; url: sec-isstructurallyvalidlanguagetag
24+
type: abstract-op; text: CanonicalizeUnicodeLocaleId; url: sec-canonicalizeunicodelocaleid
2725
urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
28-
type: abstract-op
29-
text: floor; url: eqn-floor
30-
type: dfn
31-
text: current realm; url: current-realm
26+
type: abstract-op; text: floor; url: eqn-floor
27+
type: dfn; text: current realm; url: current-realm
3228
</pre>
3329

3430
<style>
@@ -49,49 +45,49 @@ For now, see the [explainer](https://github.com/webmachinelearning/proofreader-a
4945
<xmp class="idl">
5046
[Exposed=Window, SecureContext]
5147
interface Proofreader {
52-
static Promise<Proofreader> create(optional ProofreaderCreateOptions options = {});
53-
static Promise<Availability> availability(optional ProofreaderCreateCoreOptions options = {});
48+
static Promise<Proofreader> create(optional ProofreaderCreateOptions options = {});
49+
static Promise<Availability> availability(optional ProofreaderCreateCoreOptions options = {});
5450

55-
Promise<ProofreadResult> proofread(
56-
DOMString input,
57-
optional ProofreaderProofreadOptions options = {}
58-
);
51+
Promise<ProofreadResult> proofread(
52+
DOMString input,
53+
optional ProofreaderProofreadOptions options = {}
54+
);
5955

60-
readonly attribute boolean includeCorrectionTypes;
61-
readonly attribute boolean includeCorrectionExplanations;
56+
readonly attribute boolean includeCorrectionTypes;
57+
readonly attribute boolean includeCorrectionExplanations;
6258

63-
readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
64-
readonly attribute DOMString? outputLanguage;
59+
readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
60+
readonly attribute DOMString? outputLanguage;
6561
};
6662

6763
dictionary ProofreaderCreateCoreOptions {
68-
boolean includeCorrectionTypes = false;
69-
boolean includeCorrectionExplanations = false;
64+
boolean includeCorrectionTypes = false;
65+
boolean includeCorrectionExplanations = false;
7066

71-
sequence<DOMString> expectedInputLanguages;
72-
DOMString outputLanguage;
67+
sequence<DOMString> expectedInputLanguages;
68+
DOMString outputLanguage;
7369
};
7470

7571
dictionary ProofreaderCreateOptions : ProofreaderCreateCoreOptions {
76-
AbortSignal signal;
77-
CreateMonitorCallback monitor;
72+
AbortSignal signal;
73+
CreateMonitorCallback monitor;
7874
};
7975

8076
dictionary ProofreaderProofreadOptions {
81-
AbortSignal signal;
77+
AbortSignal signal;
8278
};
8379

8480
dictionary ProofreadResult {
85-
DOMString correctedInput;
86-
sequence<ProofreadCorrection> corrections;
81+
DOMString correctedInput;
82+
sequence<ProofreadCorrection> corrections;
8783
};
8884

8985
dictionary ProofreadCorrection {
90-
unsigned long long startIndex;
91-
unsigned long long endIndex;
92-
DOMString correction;
93-
sequence<CorrectionType> type;
94-
DOMString explanation;
86+
unsigned long long startIndex;
87+
unsigned long long endIndex;
88+
DOMString correction;
89+
sequence<CorrectionType> type;
90+
DOMString explanation;
9591
};
9692

9793
enum CorrectionType { "spelling", "punctuation", "capitalization", "preposition", "missing-words", "grammar" };
@@ -104,15 +100,15 @@ enum CorrectionType { "spelling", "punctuation", "capitalization", "preposition"
104100
<xmp class="idl">
105101
[Exposed=Window, SecureContext]
106102
interface CreateMonitor : EventTarget {
107-
attribute EventHandler ondownloadprogress;
103+
attribute EventHandler ondownloadprogress;
108104
};
109105

110106
callback CreateMonitorCallback = undefined (CreateMonitor monitor);
111107

112108
enum Availability {
113-
"unavailable",
114-
"downloadable",
115-
"downloading",
116-
"available"
109+
"unavailable",
110+
"downloadable",
111+
"downloading",
112+
"available"
117113
};
118114
</xmp>

0 commit comments

Comments
 (0)