quadrismegistus / prosodic

Prosodic: a metrical-phonological parser, written in Python. For English and Finnish, with flexible language support.
http://quadrismegistus.github.io/prosodic/
GNU General Public License v3.0
277 stars 43 forks source link

Have you considered a non-command line interface for use in program libraries? #2

Closed harrisj closed 4 years ago

harrisj commented 10 years ago

This is really cool, but I want to scan bulk-lines of text for iambic pentameter and there doesn't seem to be a convenient way to do this. I can hack this by importing and calling functions, but I was wondering if you considered creating an interface suitable for importing into other projects and easily called for commands?

quadrismegistus commented 10 years ago

I haven’t. :( I can send over some code and tips on how to do it easily in Python but there’s no web interface. I would love to make one but I’m busy out my ears and nose with grad school and other project deadlines… But sincerely and deeply thanks for this email your interest. I’m curious and want to ask why you are interested? but don’t want to be rude. :)

peace, Ryan

harrisj commented 10 years ago

Well, I actually don't need a web interface, but a Python egg or whatever I can easily import into my own program and call (kinda like how the prosodic.py does). It's for a silly project of mine. I want to try the pentametron approach but on NYT stories...

quadrismegistus commented 10 years ago

Hi harrisj, I somehow only just saw this message. Is this something that would still be useful for you? If so I'll work on packaging prosodic into an egg.

harrisj commented 10 years ago

I would be interested in it. I haven't gotten to working with it yet so no worries about timing. Thank you!

On Oct 23, 2014, at 7:46 AM, Ryan Heuser notifications@github.com wrote:

Hi harrisj, I somehow only just saw this message. Is this something that would still be useful for you? If so I'll work on packaging prosodic into an egg.

— Reply to this email directly or view it on GitHub.

harrisj commented 9 years ago

Also, here's a general question. I am currently interested in porting your project to the Go language so I can write poetry bots in Streamtools. Would this annoy you greatly?

quadrismegistus commented 4 years ago

The Python pip package is now available at pip install prosodic