Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 467 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 467 Bytes

go-wordninja

Getting Start

go get github.com/willsmil/go-wordninja

Usage

package main

import (
	"github.com/willsmil/go-wordninja"
	"fmt"
)

func main()  {
	// only English characters
	eng := "thisisatest"
	fmt.Println(wordninja.CutEnglish(eng))
	
	// multi characters
	mul := "this哈isa,test"
	fmt.Println(wordninja.Cut(mul))
}

reference

  1. https://stackoverflow.com/questions/8870261
  2. https://github.com/keredson/wordninja