Home > Ajax, MySQL, PHP, Script Installation, SQL > Break Text Into Syllables

Break Text Into Syllables

December 11th, 2009

I need a simple yet robust script written in PHP that can take 25 to 100 lines of text and display each word with accurate syllable breaks.

This can be done either by writing an accurate algorithm based on English Syllabification rules (with room to manually add exceptions), or by building a MySQL database of words with correct syllable breaks and running queries for each word.

If it’s the latter, it needs to be fast (since it’ll have well over 200,000 words). An additional function will be needed to import available dictionary data with syllable breaks (from available text files), in addition to the ability to query online sources for any words not already in the database to add them as needed. An admin function to clean duplicates will also be needed, as well as a simple interface to sort/select between different syllable breaks found for the same word (should be easy enough if the database stores the plain text word as the main entry with any different variations under it).


Break Text Into Syllables

Comments are closed.
Bear