承接 nadar/stemming 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nadar/stemming

最新稳定版本:1.1.4

Composer 安装命令:

composer require nadar/stemming

包简介

Stemming by Language

README 文档

README

Tests Latest Stable Version Total Downloads

The main purpose of this repo is to unify different stemming components based on its language.

Installation

This package is distributed over the packagist service for composer. In order to use this package composer must be installed.

composer require nadar/stemming

Usage

Using the stemmer for your desired language:

<?php
include 'vendor/autoload.php';

$stemmed = \Nadar\Stemming\Stemm::stem('drinking', 'en');

echo $stemmed; // output: "drink"

If your provided language could not be found, the original word will be returned.

You can also stem a whole phrase:

echo \Nadar\Stemming\Stemm::stemPhrase('I am playing drums', 'en');

Ignore

Certain words are on the ignore list, valid for all languages, see Stemm::$ignore. You can adjust that list with Stemm::$ignore = ['foo', 'bar'].

Librarys Used:

Testing and PR

In order to test the libray run:

./vendor/bin/phpunit tests

in order to psr2 fix your code run:

./vendor/bin/php-cs-fixer fix src/

统计信息

  • 总下载量: 123.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固