1

I have been working for a few days on this and not making as much headway as I would like. I know Franklin M. Liang's hyphenation algorithm implemented in a number of languages. Yet none of these are R.

Even if there was an implementation in R, I am not really sure if it would be doing exactly what I want since I am interested in identifying syllables and not just acoustically and visually appealing locations for line breaks.

My ideal implementation would be the following:

w = c('country', 'someone',  'merely')
syllables(w) 
[1] "coun-try" "some-one" "mere-ly"
neilfws
  • 32,751
  • 5
  • 50
  • 63
Francis Smart
  • 3,875
  • 6
  • 32
  • 58

1 Answers1

2

Liang's hyphenation algorithm is implemented in the koRpus package. The vignette states that

"the function hyphen() takes objects of class kRp.tagged and applies an hyphenation algorithm (Liang, 1983) to each word."

neilfws
  • 32,751
  • 5
  • 50
  • 63