Skip to content

lwahomura/comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package comparison

Overview
Installing
Index

Overview

comparison allows you to compare two strings, checking if they are similar or not.

Installing

go get github.com/lwahomura/comparison

Also download bases from https://cloud.mail.ru/public/5DXP/LapZZZniW and add them to ./dictionary/pkg directory in your project

Index

func Compare

func Compare(first, second string) bool

Compare returns true if strings are similar.
Argument first should be a string in Russian or English. Argument second should be a string in Russian or English.

Example

package main

import (
	"hub/comparison"
)

func main() {
	a := compare.Compare("testSentence", "tstsentenc") //returns true
	a = comparison.Compare("testSentence", "tssentn") //returns false
}

About

fuzzy word comparison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages