syllables

package module
Version: v0.0.0-...-85c975e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2015 License: MIT Imports: 2 Imported by: 0

README

syllables

A syllable is a unit of organization for a sequence of speech sounds.

Build Status GoDoc MIT License

Programmatically count number of syllables in word, some specific words requires more attention and might vary between +/-1 syllable.

Benchmark

'Longest' word has 189,819 letters, takes three hours to pronounce and it takes 1/3 of seconds to process Read more: http://www.digitalspy.co.uk/fun/news/a444700/longest-word-has-189819-letters-takes-three-hours-to-pronounce.html#ixzz3SITIl2nM

Function operations ns/op sec/op
BenchmarkCountSyllables 20000 97600 ns/op 9.76e-5 sec/op
BenchmarkCountSyllables (Longest word 189,819 char) 5 318114133 ns/op 0.318114133 sec/op

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountSyllables

func CountSyllables(word []byte) (matches int)

CountSyllables -

func CountSyllablesInText

func CountSyllablesInText(text [][]byte) (count int)

CountSyllablesInText - count syllables in text

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto