Passmarked is a suite of tests that can be run against any page/website to identify issues with parity to most online tools in one package.
The Terminal Client is intended for use by developers to integrate into their workflow/CI servers but also integrate into their own application that might need to test websites and provide realtime feedback.
All of the checks on Passmarked can be voted on importance and are open-sourced, to encourage community involvement in fixing and adding new rules. We are building the living Web Standard and love any contributions.
The module firstly checks if any language tag is present, if none presents a rule and skips the actual checking. If the language tag is present, the chosen dictionary is loaded and checked.
The rules checked in this module are:
- unknown - The given language was not in the list of valid BCP 47 language tags.
- title - Mistake found in the title of page
- description - Mistake found in description of the page
- keywords - Mistake found in page keywords
- body - Mistake found in body of the page from elements h1,h2,h3,h4,h5,h6,p,li,a
The module was built with the idea to first run through local dictionaries that would catch 90% of the spell checking issues. The problem happens when the dictionaries hit newer words such as DDOS.
To counter this Passmarked maintains a dictionary generated by all of the users.
This module will call a external HTTP service with each mistake found if the environment variable
SPELLCHECK_API_URL is defined.
The request will contain:
word- The word that has been identified as wrongly spelled
token- Value of environment variable
SPELLCHECK_API_KEYto help prevent abuse, if required.
The request will then expect one of the following keywords back:
OK- If the mistake was a false-positive and is found in the dictionary
BAD- The given word was correctly marked as bad and should be reported
ERR- Something went wrong while checking the global dictionary
npm install -g passmarkedpassmarked --filter=spellcheck example.com
The hosted version allows free runs from our homepage and the option to register a site to check in its entirety. Using the Passmarked npm module (or directly via the API) integrations are also possible to get running reports with all the rules in a matter of seconds.
All rules can be run locally using our main integration library. This requires installing the package and any dependencies that the code might have such as a specific version of OpenSSL, see #dependencies
passmarked is installed:
npm install passmarkednpm install @passmarked/spellcheck
After which the rules will be runnable using promises:
Alternatively, callbacks are also available:
The module pulls all available dictionaries from the system that are myspell/hunspell compatible. The module also calls the native module of hunspell to handle parsing and validating the words/grammer given.
For the basics the following must be installed, this will only check the default language on the system:
apt-get install -y aspell hunspell
Additional languages can then be added by installing the preferred dictionary, these dictionaries only need to be myspell/hunspell compatible. The Debian/Ubuntu apt repo already contains numerous dictionaries ready for use.
Feel free to install of the following for example:
apt-get install -y hunspell-anapt-get install -y hunspell-de-deapt-get install -y hunspell-frapt-get install -y hunspell-fr-comprehensiveapt-get install -y hunspell-arapt-get install -y hunspell-ruapt-get install -y hunspell-beapt-get install -y hunspell-seapt-get install -y hunspell-brapt-get install -y hunspell-en-caapt-get install -y hunspell-en-medapt-get install -y hunspell-en-usapt-get install -y hunspell-eu-esapt-get install -y hunspell-gl-esapt-get install -y hunspell-shapt-get install -y hunspell-daapt-get install -y hunspell-huapt-get install -y hunspell-kkapt-get install -y hunspell-koapt-get install -y hunspell-de-chapt-get install -y hunspell-mlapt-get install -y hunspell-uzapt-get install -y hunspell-neapt-get install -y hunspell-viapt-get install -y myspell-afapt-get install -y myspell-en-usapt-get install -y myspell-en-zaapt-get install -y myspell-heapt-get install -y myspell-nsapt-get install -y myspell-thapt-get install -y myspell-hrapt-get install -y myspell-plapt-get install -y myspell-tlapt-get install -y myspell-caapt-get install -y myspell-eoapt-get install -y myspell-huapt-get install -y myspell-ptapt-get install -y myspell-tnapt-get install -y myspell-csapt-get install -y myspell-esapt-get install -y myspell-hyapt-get install -y myspell-pt-brapt-get install -y myspell-daapt-get install -y myspell-etapt-get install -y myspell-itapt-get install -y myspell-tsapt-get install -y myspell-ruapt-get install -y myspell-ukapt-get install -y myspell-skapt-get install -y myspell-ukapt-get install -y myspell-gaapt-get install -y myspell-nlapt-get install -y myspell-en-auapt-get install -y myspell-en-gbapt-get install -y myspell-nlapt-get install -y myspell-nrapt-get install -y myspell-sw
We also recommend you install dictionaries from the SCOWL project, Passmarked hosts a build for local build servers as well - package.passmarked.com/dictionaries/scowl-20160910.zip.
The libraries can be installed using:
mkdir -p /Library/Spelling wget -O /tmp/build.zip https://package.passmarked.com/dictionaries/scowl-20160910.zip unzip /tmp/build.zip -d /Library/Spelling rm /tmp/build.zip || true
/Library/Spelling is checked as a location for libraries by default for Hunspell and Aspell (mySpell).
Rules also include a
typewhich could be
noticegiving a better view on the importance of the rule.
git clone email@example.com:passmarked/spellcheck.gitnpm installnpm test
Pull requests have a prerequisite of passing tests. If your contribution is accepted, it will be merged into
develop (and then
master after staging tests by the team) which will then be deployed live to passmarked.com and on NPM for everyone to download and test.
To learn more visit:
- Terminal Client
- NPM Package
- Slack - We have a Slack team with all our team and open to anyone using the site to chat and figure out problems. To join head over to passmarked.com/chat and request a invite.
Copyright 2016 Passmarked Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific