-
Notifications
You must be signed in to change notification settings - Fork 9
Support multiple labels #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| `type` only exists when the proofreader object is configured with `includeCorrectionTypes = true`, while `explanation` only exists when the proofreader object is configured with `includeCorrectionExplanations = true`. | ||
|
|
||
| Each correction could be associated with mutliple correction type labels. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Each correction could be associated with mutliple correction type labels. For example: | |
| Each correction could be associated with multiple correction type labels. For example: |
| const original_text = "`thatd` a good amt of time!!! !" // `thatd` is the text to be corrected | ||
| const proofread_text = "`That's` a good amount of time!" // `That's` is the corrected text | ||
| ``` | ||
| where the correction from "thatd" to "That's" contains three types of correction - "Captilization", "Spelling" and "Punctuation". When there's only one label, the sequence will be of size 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| where the correction from "thatd" to "That's" contains three types of correction - "Captilization", "Spelling" and "Punctuation". When there's only one label, the sequence will be of size 1. | |
| where the correction from "thatd" to "That's" contains three types of correction - "Capitalization", "Spelling" and "Punctuation". When there's only one label, the sequence will be of size 1. |
| unsigned long long endIndex; | ||
| DOMString correction; | ||
| CorrectionType type; // exists if proofreader.includeCorrectionTypes === true | ||
| sequence<CorrectionType> type; // exists if proofreader.includeCorrectionTypes === true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the "Full API surface in Web IDL" section below as well.
|
@anssiko, can you add discussion of this PR to the next F2F agenda? |
Update the API shape to support multiple labels per correction.
Please see the open issue for detailed discussion: #30