JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q29394F
  • License ISC

Stemmer untuk bahasa Madura menggunakan rule based

Package Exports

  • stemmer-madura
  • stemmer-madura/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stemmer-madura) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Stemmer Madura

Build Status

Stemmer untuk bahasa Madura menggunakan rule-based.

Instalasi

Stemmer-madura dapat diinstall menggunakan npm dengan perintah:

npm install stemmer-madura

Penggunaan

Stemmer-madura akan mencari file kata dasar (defaultnya: basewords.txt) dan file kata umum (defaulnya: stopwords.txt) pada direktori aktif dimana perintah dijalankan. Jika file tidak ditemukan maka akan digunakan file default yang disertakan dalam package ini.

** Dalam package ini disertakan file basewords.txt dan stopwords.txt.

Contoh berikut adalah kode TypeScript pengunaan stemmer-madura untuk melakukan proses stemming kata "nglerek"

import { Stemmer, Files } from 'stemmer-madura';

const stemmer: Stemmer = new Stemmer;

// load basewords and stopwords file menggunakan bantuan Files
const myFile: Files = new Files(stemmer);
try {
  stemmer.baseWords = files.readWordsFile('base');
  stemmer.stopWords = files.readWordsFile('stop');
} catch (error) {
  console.log(error);
}

stemmer.input = 'nglerek';
console.log(stemmer.stemWords());