Re: Spell checking identifiers

gautier_niouzes@hotmail.com
Wed, 24 Jun 2020 13:08:39 -0700 (PDT)

          From comp.compilers

Related articles
Spell checking identifiers johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-24)
Re: Spell checking identifiers johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-24)
Re: Spell checking identifiers gah4@u.washington.edu (2020-06-23)
Re: Spell checking identifiers derek@_NOSPAM_knosof.co.uk.invalid (Derek M. Jones) (2020-06-24)
Re: Spell checking identifiers 937-053-0959@kylheku.com (Kaz Kylheku) (2020-06-24)
Re: Spell checking identifiers tkoenig@netcologne.de (Thomas Koenig) (2020-06-24)
Re: Spell checking identifiers gautier_niouzes@hotmail.com (2020-06-24)
Re: Spell checking identifiers gah4@u.washington.edu (2020-06-24)
Re: Spell checking identifiers johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-25)
Re: Spell checking identifiers johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2020-06-25)
Re: Spell checking identifiers acolvin@efunct.com (mac) (2020-07-09)
Re: Spell checking identifiers tkoenig@netcologne.de (Thomas Koenig) (2020-07-10)
Re: Spell checking identifiers gah4@u.washington.edu (2020-07-10)
| List of all articles for this month |

From: gautier_niouzes@hotmail.com
Newsgroups: comp.compilers
Date: Wed, 24 Jun 2020 13:08:39 -0700 (PDT)
Organization: Compilers Central
References: 20-06-010
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="8443"; mail-complaints-to="abuse@iecc.com"
Keywords: Ada, lex, errors
Posted-Date: 24 Jun 2020 17:25:47 EDT
In-Reply-To: 20-06-010

On Tuesday, June 23, 2020 at 8:40:38 PM UTC+2, Johann 'Myrkraverk' Oskarsson


> So, without going through the source of rustc to find out, I'm curious
> about what general techniques people use to make this work? In particu-
> lar the Damerau–Levenshtein distance algorithm is not appropriate for
> dictionary lookups, as far as I know.


GCC's GNAT front-end for Ada does such checks (search for "GNAT.Spelling_Checker").
The source code (at least versions I've found on the Web) does not refer to a
specific algorithm.


A few examples of detection:


hac-parser-expressions.adb:129:35: "Symst" is undefined
hac-parser-expressions.adb:129:35: possible misspelling of "Symset"


hac-parser-expressions.adb:129:35: "Sym_set" is undefined
hac-parser-expressions.adb:129:35: possible misspelling of "Symset"


hac-parser-expressions.adb:129:35: "Sysmet" is undefined
hac-parser-expressions.adb:129:35: possible misspelling of "Symset"


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.