0.0.4 • Published 2 years ago

agricultural-and-marine-product-searcher v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

agricultural-and-marine-product-searcher

주어진 문장에서 유사한 농수산물 및 가공식품 단어들을 인식하고, 그와 같이 분류된 유사한 제품군들을 알려주는 모듈\ Tokenizes agricultural and marine products from a given query string, and returns a cluster of products that share the same classification

Installing

Using npm:

$ npm install agricultural-and-marine-product-searcher

Using yarn:

$ yarn add agricultural-and-marine-product-searcher

Methods

getQueryCluster(searchQuery: string)

Given a searchQuery string, returns an array of WordCluster which contains various product names from the same family.\ Currently able to handle possible typos and/or similar name searches.\ \ WordCluster

{
    name: string,
    fromString: string
    fromStringIndex: Array<number>
    lengthWeightedSimilarity: number
    fieldName: string
    fieldChild: Array<string>
    greaterFieldName: string
    greaterFieldChild: Array<string>
  }