Skip to main content

Rhyme Mapper

Rhyme Mapper is a tool for visually exploring the phonetic structure and rhyme patterns of text, with a focus on poetry.

screenshot

The tool generates a phonetic representation of a poem where each phoneme is drawn as a circle. Phoneme size is used to indicate stress, with different sizes representing primary and secondary stress.

Using phoneme sequences, the tool detects chains of rhyming words and represents the chains as paths connecting the drawn phonemes.

Rhyme Mapper supports 127 languages supported by espeak-ng.

The project is ongoing and still in its early stages.

Installation

PyPI

[!NOTE] The PyPI package is not yet available.

Docker

# Pull the latest image
docker pull akingulfidan/rhyme-mapper 

# Start the container
docker run -p 8000:8000 akingulfidan/rhyme-mapper:latest 

# Navigate to http://localhost:8000/front

Usage

  1. Enter or paste your text.
  2. Select the language.
  3. Generate the rhyme graph.
  4. Use the chain-length slider to filter the displayed rhyme paths.
  5. Drag the graph to move it and scroll to zoom.

Roadmap

Short Term :

  • Allow selecting phones in the visualization
  • Display information on selected words and phones
  • Line numbers on the text area and the visualization.
  • Better rhyme path filtering tools.
  • Improve documentation.
  • Publish package to PyPI.

Long Term:

  • Add detection for non-perfect rhymes.
  • Highlight stress patterns in the visualization and display measure.
  • Rhyme Scheme detection.

Attributions

Phonemization in Rhyme Mapper is done using Phonemizer library.

@article{Bernard2021,
doi = {10.21105/joss.03958},
url = {https://doi.org/10.21105/joss.03958},
year = {2021},
publisher = {The Open Journal},
volume = {6},
number = {68},
pages = {3958},
author = {Mathieu Bernard and Hadrien Titeux},
title = {Phonemizer: Text to Phones Transcription for Multiple Languages in Python},
journal = {Journal of Open Source Software}
}

License

GNU Affero General Public License v3.0

Download files

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

Source Distribution

rhyme_mapper-0.0.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

rhyme_mapper-0.0.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file rhyme_mapper-0.0.1.tar.gz.

File metadata

  • Download URL: rhyme_mapper-0.0.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for rhyme_mapper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3ee74183ad5ca41804c859f2ed920fcb141de628fd5e7ded72071904baab4391
MD5 2af33160f96057eca118615573a7ee6a
BLAKE2b-256 1ef167179408071bc76ac998f733d39b12bc8d9557458c2b022d02fa477d6fca

See more details on using hashes here.

File details

Details for the file rhyme_mapper-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rhyme_mapper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for rhyme_mapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b61ce9cad9c727f2971b6fafce5fc7f73e664377e65913b874a6f7a48a97c1e
MD5 cb335b5de2688a6258af10e33ea37959
BLAKE2b-256 f795c55e0e238044a5ed4cf1d6a5805f16077e5f767cfc83ae3e1ca44cdb50f3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

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