Skip to content

Spell checker: can’t add to the dictionary possessives with curly apostrophes (’s) #686

@Nicolapps

Description

@Nicolapps

Description

When the spell checker doesn’t recognize a possessive that uses curly quotes (e.g. Viazovska’s, with = U+2019 Right single quotation mark), clicking “Add to dictionary” doesn’t work: the spell checker still flags the word as spelled incorrectly.

Screen.Recording.2025-08-13.at.11.23.17.mov

Each time “Add to dictionary” is clicked, a new entry is added to the personal dictionary, even if it was already clicked in the past:

The Typst personal dictionary, showing multiple entries for “Viazovska’s”

Adding the version with the straight apostrophe (' = U+0027 Apostophe) solves the issue, as the version with a curly apostrophe is recognized as correct.

Here’s the Typst code used in the example above:

// Without possessive
Maryna Viazovska is a Ukrainian mathematician known for her work in sphere packing.

// ’ (U+2019 RIGHT SINGLE QUOTATION MARK)
In contrast, Viazovska’s proof for 8 and 24 dimensions is "stunningly simple"

// ' (U+0027 APOSTROPHE)
In contrast, Viazovska's proof for 8 and 24 dimensions is "stunningly simple"

Reproduction URL

No response

Browsers

Safari

OS

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.improveRelated to the diagnostics, comments, and spellcheckspellcheckAbout spellcheck.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions