Path: utzoo!attcan!uunet!lll-winken!xanth!mcnc!decvax!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.sources.wanted Subject: Hyphenation code wanted Message-ID: <654@lakart.UUCP> Date: 15 Aug 89 00:12:25 GMT Reply-To: dg@lakart.UUCP (David Goodenough) Organization: Lakart Corporation - The ultimate in broadcast automation Lines: 27 I am looking for code that will decide where English words should be hyphenated. I'm not too worried exactly what form of output it produces, since the application I'm writing can be modified to suit. For example, my first run simply looked for vccv combinations, and split between the two consonants. What I did was to create a subroutine: hyphenate(word, position) char *word; char *position; where word was the word to be hyphenated, and position was an array where each entry corresponded to a letter in word, and a given entry was set TRUE if the corresponding letter in the word could have a hyphen placed _AFTER_ it - so hyphenate("hello", x) would set x[2] (the first 'l') and clear all other elements of x. This is my current interface, if the code provided does something different then I'll figure out how to adapt it. C source is my first choice, I'll take pascal if pushed. Thanks in advance, -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+