Automattic / Automattic/harper

FR allow for multiple capitalizations of a word to be accepted.

Open
#2,462 2 comments 1 reaction 0 assignees View on GitHub
enhancement linting spelling
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

**What problem does this solve?**
I have some words that get flagged (in my case, unusual names that I refer to frequently, such as Masako). That works, except it turns out that I would also like to accepts the fully capitalized version of the name (MASAKO). However, accepting one ends up rejecting the other. I would like to have either of these be okay, but things like MAsako be flagged.

**Proposed Solution**
There are many ways it could be done. For example, the dictionary could allow multiple options separated by some character, e.g. a pipe "|".
Masako|MASAKO.

In fact, what I notice now happening, is that if I put both in the user dictionary in the settings, the earlier one gets deleted.

Alternately, in the obsidian popup, if I add one to the dictionary, the other gets flagged.

**Examples**

With MASAKO in the dictionary:

Image

After adding Masako to the dictionary:

Image

**Component**
???
- [ ] Core engine
- [ ] Plugin/Extension
- [ ] Other: _____

**Additional Context**
Any other relevant info.

Contributor guide

Open the contributing guide

Research direction

The issue does not identify a file, test, or component; start by locating user-dictionary handling and capitalization matching in the Rust engine. Reproduce the Masako, MASAKO, and MAsako cases, then verify that the first two are accepted while the mixed-case form remains flagged and that both dictionary entries can coexist.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.