https://bugzilla.redhat.com/show_bug.cgi?id=2399984
Bug ID: 2399984
Summary: Review Request: python-scspell3k - A conservative
interactive spell checker for source code
Product: Fedora
Version: rawhide
OS: Linux
Status: NEW
Component: Package Review
Severity: medium
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Target Milestone: ---
Classification: Fedora
spec: https://fed500.fedorapeople.org/python-scspell3k.spec
srpm: https://fed500.fedorapeople.org/python-scspell3k-2.3-1.fc42.src.rpm
description:
scspell is a spell checker for source code. This is an unofficial fork
(of https://launchpad.net/scspell) that runs on both Python 2 and 3.
scspell does not try to be particularly smart--rather, it does the simplest
thing that can possibly work:
- All alphanumeric strings (strings of letters, numbers, and underscores)
are spell-checked tokens.
- Each token is split into one or more subtokens. Underscores and digits always
divide tokens, and capital letters will begin new subtokens. In other words,
some_variable and someVariable will both generate the subtoken list {some,
variable}.
- All subtokens longer than three characters are matched against a set of
dictionaries, and a match failure prompts the user for action. When matching
against the included English dictionary, prefix matching is employed; this
choice permits the use of truncated words like dict as valid subtokens.
When applied to code written in most popular programming languages while using
typical naming conventions, this algorithm will usually catch many errors
without
an annoying false positive rate.
In an effort to catch more spelling errors, scspell is able to check each file
against a set of dictionary words selected specifically for that file. Up to
three different sub-dictionaries may be searched for any given file:
- A natural language dictionary. (scspell provides an American English
dictionary as the default.)
- A programming language-specific dictionary, intended to contain oddly-spelled
keywords and APIs associated with that language. (scspell provides small
default dictionaries for a number of popular programming languages.)
- A file-specific dictionary, intended to contain uncommon strings which are
not likely to be found in more than a handful of unique files.
fas: fed500
Reproducible: Always
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2399984
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202399984%23c0
--
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue