Skip to content

Spellchecking in set.mm (and iset.mm) #4875

Open
@tirix

Description

@tirix

As shown in metamath-knife#186, and the resulting #4867, it's possible to add spell checking for comments in set.mm.
The first question is whether we want to develop those tools to e.g. have a goal of including spell checking in CI.

If we agree on this goal, we could discuss on the method. The "hunspell dictionary" I've used in metamath-knife seems to be a pretty common approach, with english dictionaries available in the public domain.

In metamath-knife, I'm importing and statically linking such a public domain english dictionary, https://github.com/wooorm/dictionaries/tree/main/dictionaries/en, however words like "adjoint", "orthomodular" or "morphism" weren't included, so it does not seem to be complete with regard to many mathematical terms. I have not found a dictionary covering mathematical words, maybe you could help with that.. Depending on what we find, we could have to enhance or extend the dictionary.

Either way there will be some terms specific to the database, like wff, setvar, which we will want to use in the comments and pass spell checking.

So overall a solution could be to:

  • add the possibility in metamath-knife to use custom dictionaries,
  • store in the metamath/set.mm GitHub repository a dictionary with additional math entries, which we could add using the option above,
  • add in set.mm and iset.mm a list of custom entries specific to the database, using a special $j command.

What's your opinion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions