Skip to content

TeisNP/syllables

 
 

Repository files navigation

syllables Build Status codecov GoDoc

Go port of the JavaScript syllable counter at https://github.com/wooorm/syllable

Install

go get "github.com/mtso/syllables"

Example

Example usage of syllables.In(string) int:

package main

import (
	"fmt"
	"github.com/mtso/syllables"
)

func main() {
	text := "The quick brown fox jumps over the lazy dog."
	syllableCount := syllables.In(text)
	fmt.Printf("There are %v syllables in %q\n", syllableCount, text)
	// Output: There are 11 syllables in "The quick brown fox jumps over the lazy dog."
}

About

Go syllable counter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%