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.ficto.pos_count(text)
pr = Fictometer.ficto.pos_ratio(pc)
result = Fictometer.ficto.fictometer(pr)
Fictometer.ficto.help()
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.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file fictometer-0.1.0.tar.gz
.
File metadata
- Download URL: fictometer-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b635796eb185756a4bf07af6bf00dfa84eeded0f56e011fe26bcbe1ea2d69ae |
|
MD5 | 7b4dac442aa0266a1ee92caf87914bee |
|
BLAKE2b-256 | f47db546d9afb591807ac00e10947d737b91efa1e30cc7954e16aefda868c124 |
File details
Details for the file Fictometer-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: Fictometer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4605ab2b0047c05f3c381da38368728f446000029811b87dcea064211173123a |
|
MD5 | 2037433ef3d26442062b0272f94e5480 |
|
BLAKE2b-256 | 9f23019cc2a44804225c3ef98ca6bffcf47e0c42f10e132cd8863d9810b64907 |