Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloud_text

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloud_text

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CloudText

This gem removes punctuation and digits(optional), filters stopwords for the chosen language ('tr', 'en' or 'fr'), does stemming on the words and outputs an array of words with their frequencies.

Installation

Add this line to your application's Gemfile:

gem 'cloud_text'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cloud_text

Usage

require 'cloud_text'

# Default options
# remove_digits => false
# language => "en"
# stemming => false

options = { remove_digits: true, language: "en", stemming: true }
cleaner = CloudText.clean_text("Your text to be cleaned, will come come come here1!1", options)
# => [["come", 3], ["will", 1], ["clean", 1], ["text", 1]]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/twentify/cloud_text. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the CloudText project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 12 Mar 2018

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