Skip to main content

Classifies text as 'Fiction' or 'Non-Fiction'.

Project description

Fictometer

Description

Fictometer is an algorithm for analysing whether the given text is Fiction or Non-Fiction. It first calculates the number of adverbs, adjectives and pronouns in the text. It then calculates Ratio of Adjective to Pronoun RADJPRON and Ratio of Adverb to Adjective RADVADJ, from which it predicts whether text is Fiction or Non-Fiction.

Blog Link: 🔗LINK

Installation

pip install Fictometer

Usage

import Fictometer

text = "your_text"

pc = Fictometer.counts(text)
// returs the count of ```adjectives```, ```adverbs``` and ```pronouns```

result = Fictometer.predict(text)
// Uses counts(), then calculates RADJPRON and RADVADJ, and returns a tuple having 'result' and 'confidence'.

Fictometer.help()
// Shows how to use the package

Contact

email - atmabodha@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fictometer-0.2.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Fictometer-0.2.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file fictometer-0.2.5.tar.gz.

File metadata

  • Download URL: fictometer-0.2.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for fictometer-0.2.5.tar.gz
Algorithm Hash digest
SHA256 ec92a5b9eb9b0f64366edf22d701f524e103b842acec064ae96a930d2fdeb2e6
MD5 342ccd336b561801797e1d3684d82212
BLAKE2b-256 40c044dd0a634fffb995d7e5ade9a9cb03c34aaff31a8e6e63a974d68505660e

See more details on using hashes here.

File details

Details for the file Fictometer-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: Fictometer-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for Fictometer-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 08175a09b3f17449b603fddd0f36af071f3d711d2f5e0b4cbf8121ded6276210
MD5 6b2f7eb015debbc4ec15ab07c2473fe8
BLAKE2b-256 e6b88bcd6157fcdd90c408d797c59b52f28e33d5fc3ad2ee2b1ce686db9309a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page