Skip to content

change(web): adjust autocorrect aggressiveness / thresholding #16398

Description

@jahorton

I've been doing some tests. Initial experience is great! Some thoughts:

[...]
2. Inconsistent: [Testing] was not offered automatically when I typed [Tesring]. (See video)
[...]
4. [Givd] offers "Give" but doesn't autocorrect?
[...]
7. [frie] does not auto-offer [friend]

Originally posted by @mcdurdin in #16223 (comment)

In each of these cases, the lack of autocorrect is caused due to low "aggressiveness" settings.

For item 2 above - tesring - the following may all be presented at once:

  • tearing (s -> a, also a single-char correction)
  • texting (s -> x, r -> t)
  • bearing (t -> b, s -> a)
  • teasing (s -> a, r -> s)
  • tasting (e -> a, r -> t)
  • gearing (t -> g, s -> a)

If the sum probability of all non-testing suggestions exceeds the probability of the testing suggestion, it will not be auto-selected. That's part of the conservative autoselection process currently in place.

For item 4, givd:

  • given
  • gives
  • giving
  • find (g -> f, v -> n)
  • five (g -> f, d -> e)
  • giveaway

For item 7, frie:

  • friends (exceeds friend!)
  • friendly
  • friendship
  • friend's
  • fried
  • friendships
  • fries

It's hard to know which is correct when we're not part-of-speech aware, let alone gramatically aware, etc. We may be able to aim for the "default", singular wordform if we were part-of-speech aware (#3058), I suppose, assuming we could note that the bulk of these options came from the same word stem - friend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changeMinor change in functionality, but not newweb/

    Type

    Projects

    Status
    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions