New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

anne

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anne

A statistics-based spell checker.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Anne Build Status View on NPM code climate code coverage

A statistics and phonetics based spell checker.

Partially refactored from NaturalNode/natural

NPM

Usage

install locally using npm (npm install --save anne) and import the module to create a new instance of Anne:

var anne = require('anne')

// do stuff with the instance
anne.learn('This is a sample sentence.')

Methods

  • learn([string]): piece apart the string, and learn from every word.
  • fix([string]): piece apart the string, and replace the words that need updating.
  • fixAndLearn([string]): do a .fix() then a .learn() (the learning will happen on the original string, and the fixed is returned).
  • toJSON(): serialize the dictionary into JSON for saving.
  • fromJSON([object]): deserialize the dictionary from JSON for usage.

License

GPLv3.

anne: statistics-based spell checker.
Copyright (C) 2015 Online Health Database

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Keywords

FAQs

Package last updated on 22 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc