presciencelabs / tabitha-editor

0 stars 0 forks source link

Allow user to accept a suggestion or fix an error #101

Open craigp-atw opened 3 months ago

craigp-atw commented 3 months ago

Some errors or suggestions are simple enough that the user can click 'accept' and the text will update accordingly. There could also potentially be a 'fix all' button. It's impossible to auto-fix everything (for example a pronoun referent), but it would make some things easier (like adding/removing a sense).

craigp-atw commented 3 months ago

Some brainstorming:

A message on a token can include a serializable 'action/change/fix' rule that the client-side will execute if the user accepts it. This means it will have to include indexes and text commands to manipulate tokens.

When a change is applied, it manipulates the tokens. Then it 'textifies' the tokens and changes the text within the text area. Then it may or may not resubmit the text for checking.

Potential example rules/actions: