agricultural-and-marine-product-searcher
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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>
  }

/agricultural-and-marine-product-searcher/

    Package Sidebar

    Install

    npm i agricultural-and-marine-product-searcher

    Weekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    1.38 MB

    Total Files

    28

    Last publish

    Collaborators

    • sjeon