You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested implementation:
Assuming that wordcheck is integrated with the proofreading page, a number of functions would be needed:
Basic wordcheck function
this would need to identify the project so the project good and bad words could be used but would not need to identify the page or user.
Send:
a piece of text
a set of languages
a set of ad-hoc words (possibly empty).
Receive:
An array of 'objects' each consists of a piece of text and a code indicating one of
normal text
WC_WORLD
WC_SITE
WC_PROJECT
WC_PAGE
punctuation
text in 'wrong' language (code gives language)
A list of uncommon scripts found
The client would use this information to construct the page to show to the user
Finalise wordcheck function
This would identify the project, page and user and invoke the save_wordcheck_event() function. If the user had previously entered wordcheck mode it would be called when the user saves the page as done, or possibly also as-in-progress.
Sends the set of suggested ad-hoc words (possibly empty).
Get the set of languages with dictionaries.
The text was updated successfully, but these errors were encountered:
70ray
changed the title
Add a wordcheck A
Add a wordcheck API
Sep 30, 2024
Regarding the 'finalise' or 'report' wordcheck function, a better plan could be to send the set of accepted words as part of the save and checkin functions. This would ensure an appropriate page state and user. The array could be empty. Not sending any array would indicate wordcheck had not been run. Or send another variable to indicate whether wordcheck had been run or not.
Suggested implementation:
Assuming that wordcheck is integrated with the proofreading page, a number of functions would be needed:
Basic wordcheck function
this would need to identify the project so the project good and bad words could be used but would not need to identify the page or user.
Send:
Receive:
The client would use this information to construct the page to show to the user
Finalise wordcheck function
This would identify the project, page and user and invoke the save_wordcheck_event() function. If the user had previously entered wordcheck mode it would be called when the user saves the page as done, or possibly also as-in-progress.
Sends the set of suggested ad-hoc words (possibly empty).
Get the set of languages with dictionaries.
The text was updated successfully, but these errors were encountered: