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

classify-poetry

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classify-poetry

recognize type poetry in a given text excerpt

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

classify-poetry

NPM Version Build Status

recognize the type of poetry in a given excerpt

Installation

npm install classify-poetry

Usage

Classify Poetry

var classifyPoetry = require("classify-poetry").classifyPoetry;
var types = classifyPoetry(
  "detect a haiku \n pleased to do, says algorithm \n thanks algorithm"
);
console.log(types); // ["haiku"]

Detect Specific Type

ABC
var abc = require("classify-poetry").abc;
abc(sampleText); // => true or false

http://www.poeticterminology.net/01-abc-poem.htm

Couplet
var couplet = require("classify-poetry").couplet;
couplet(sampleText); // => true or false

https://en.wikipedia.org/wiki/Couplet

Haiku
var haiku = require("classify-poetry").haiku;
haiku(sampleText); // => true or false

https://en.wikipedia.org/wiki/Haiku_in_English

Limerick
var limerick = require("classify-poetry").limerick;
limerick(sampleText); // => true or false

https://en.wikipedia.org/wiki/Limerick_(poetry)

Quatrain
var quatrain = require("classify-poetry").quatrain;
quatrain(sampleText); // => true or false

https://en.wikipedia.org/wiki/Quatrain

Sonnet
var sonnet = require("classify-poetry").sonnet;
sonnet(sampleText); // => true or false

https://en.wikipedia.org/wiki/Sonnet

Tanka
var tanka = require("classify-poetry").tanka;
tanka(sampleText); // => true or false

https://en.wikipedia.org/wiki/Tanka

Terza Rima
var terzaRima = require("classify-poetry").terzaRima;
terzaRima(sampleText); // => true or false

https://en.wikipedia.org/wiki/Terza_rima

Keywords

FAQs

Package last updated on 17 Jun 2020

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