PHPackages                             zunyunkeji/wordparser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. zunyunkeji/wordparser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

zunyunkeji/wordparser
=====================

基于基础词库并结合自定义词库进行分词的系统，也可进行敏感词检测。

2.1.1(3y ago)022Apache-2.0PHPPHP &gt;=5.6.0

Since Sep 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yvsm/wordparser)[ Packagist](https://packagist.org/packages/zunyunkeji/wordparser)[ Docs](https://github.com/yvsm/wordparser)[ RSS](/packages/zunyunkeji-wordparser/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (5)Used By (0)

wordparser
==========

[](#wordparser)

基于基础词库并结合自定义词库进行分词的系统，也可进行敏感词检测。

安装
--

[](#安装)

> composer require zunyunkeji/wordparser

示例
--

[](#示例)

### 分词

[](#分词)

```
	$splitword = new \zunyunkeji\wordparser\splits();

	//分词
	print_r($splitword->get($content,$title));

	//分词快捷方法
	print_r(splits_get($content,$title));

	//获取排列前几位分词
	print_r($splitword->get($content,$title));

	//分词快捷方法
	print_r(splits_top($content,$title,5));
```

### 添加分词

[](#添加分词)

```
	$splitword->add("眉县猕猴桃");

	#添加分词到自定义分词文件
	$splitword->add("眉县猕猴桃", __DIR__.'/src/dict/other.dict');
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~94 days

Total

4

Last Release

1115d ago

Major Versions

1.0.0 → 2.0.02023-05-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4d5aba2951ad4ab948f841a29d5377cd796a50657826e981aa95b2f3dcb1c8?d=identicon)[yvsm](/maintainers/yvsm)

---

Top Contributors

[![yvsm](https://avatars.githubusercontent.com/u/19699180?v=4)](https://github.com/yvsm "yvsm (10 commits)")

### Embed Badge

![Health badge](/badges/zunyunkeji-wordparser/health.svg)

```
[![Health](https://phpackages.com/badges/zunyunkeji-wordparser/health.svg)](https://phpackages.com/packages/zunyunkeji-wordparser)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
