Skip to main content

Lightweight library which implements Markov algorithm (cycle of replacements) for text strings.


Usage:

creating rules

from markalgo import rules
from markalgo import processing

# from text
replacement = rules.create_rules([("Norwegian blue", "parrot"), ("alive", "dead"), ("dead", "no more")])

# or from csv files
with open("notes/cicero.csv") as argumentation:
    replacement = rules.read_all_rules_from_csv_file(argumentation)

processing text…

processing.process_text("This Norwegian blue is alive", replacement)

 *"This parrot is no more"*

…or plain-text files

with open("notes/note.txt") as argumentation:
    processing.process_file()

Release files for markalgo 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for markalgo 1.0.2
File Interpreter ABI Platform
markalgo-1.0.2-py3-none-any.whl Python 3 none any Details

Release files / markalgo-1.0.2-py3-none-any.whl

Download URL markalgo-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b81d4915fe468b6704cb1aa90449ecf8082b6b734f2b9d5c8d9a829fc4b74577
BLAKE2b-256 checksum
How to use checksums
2241ed1d1fa843c97a0c1f3596110da26213395bbc8631d130bbc0fc649eaf55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page