Skip to content

[Feature Request] Increase autocorrect dictionary size limit #25823

@ohshitgorillas

Description

@ohshitgorillas

Feature Request Type

  • Core functionality
  • Add-on hardware support (eg. audio, RGB, OLED screen, etc.)
  • Alteration (enhancement/optimization) of existing feature(s)
  • New behavior

Description

Summary

Users can now algorithmically generate comprehensive autocorrect dictionaries (https://github.com/ohshitgorillas/qmk_userspace/tree/main/autocorrect/ac_generator), but the current dictionary size limit requires significant compromises to fit within memory constraints.

Problem

The autocorrect dictionary size is currently limited by the trie structure's compilation limits (63 backspace maximum, dictionary size approaching 0xFFFF bytes), however, algorithmic typo generation is capable of generating arbitrarily large correction dictionaries.

To fit within the current limit, users must:

  • Limit corrections to only the top 400-600 words
  • Be extremely conservative with adjacent key addition/replacements

This limits the ultimate effectiveness of the autocorrect feature.

Requested Change

Either:

  • Increase the maximum dictionary size, OR
  • Introduce an option/rule which allows users to opt into a larger dictionary

Use Case

Users who don't have trouble spelling, but do have fat fingers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions