question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong syllable analysis for "silence" and "silent"

See original GitHub issue

When using the compromise-syllables plugin, it counts the amount of syllables in the word “silent” as 1, which is incorrect:

import compromise from 'compromise';
import syllables from 'compromise-syllables';

const nlp = compromise.extend(syllables);

const word = 'silent';

console.log(nlp(word).terms().syllables()[0].syllables);
// ['silent']

// should be: ['si', 'lent']

The same is true for silence (['silen', 'ce']), silenced ([ 'silen', 'ced' ]) and other similar words.

I suspect there are other words affected by this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
spencermountaincommented, May 16, 2021

i mean, the best would be if it could be configured somehow, for different dialects. Having a configurable way to specify syllable pronunciation - that would be so fun to play with. the compromise tokenizer lends itself really well to this - and I think a low-data solution for the browser could become really popular, for a lot of uses.

1reaction
spencermountaincommented, May 16, 2021

thank you @axaysushir - go crazy! you’ll find the very-weak syllable function here - it would be really fun to make this good.

so my understanding is that a proper syllable function will first do pronounciation step - which you can see a early implementation of here - combining these somehow would be really fun, and have a lot of applications.

happy to help-out, in any way, cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

Words YOU'RE saying wrong (probably) - Silent Syllables in ...
In this English pronunciation lesson I'm going to show you 5 words which are very commonly pronounced wrongly by English students because ...
Read more >
Silence as a cue to the perception of syllable-initial and ...
The purpose of the present study was to assess directly the duration of silence necessary for the identification of syllable-final and syllable-initial stops...
Read more >
The sounds of Silence
The voicing sound is now amplified at the resonant frequencies ofthe nose and of the part of the mouth behind the blockage. Releasing...
Read more >
Elie Wiesel's profound and paradoxical language of silence.
Sibelman directs us to ways Wiesel uses silence as a literary technique, like a musician building a melody as much on rests as...
Read more >
Silent Syllables | Ginseng English | Learn English
This sounds confusing, but don't worry! If you leave the syllable silent, it will never be wrong! *Note: Deleting syllables is a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found