定制 micros/splitname 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

micros/splitname

Composer 安装命令:

composer require micros/splitname

包简介

library for Laravel 10 and up, allows you to split Spanish names into four main parts

README 文档

README

This library for Laravel 10 and up, allows you to split Spanish names into four main parts:

  • First name
  • Middle name
  • Surname
  • Other surnames

In addition, this library tries to identify the gender (female or male)

This library uses its internal term dictionary and its own rules definition. It is capable to learn new terms by its use, which means the more is used the more accurate is the library.

The system cannot learn new rules (only new terms) but this is a feature under development.

Note that if the library is used in many projects, with independent installations, you will get no benefits from the learning capabilities since are different databases. You should sync manually the newly learned terms between databases.

Is advisable to run the system many times against the database to will be clasified in order to let the system to learn new terms which improve the precision.

The system can handle unknow names and surnames but has no being tested with non-Spanish names.

Please use under your own risk and read carefully the licence.

DESCRIPCIÓN

Esta librería para Laravel 10 y superior, le permite dividir nombres en español en sus cuatro componentes fundamentales:

  • Primer nombre
  • Otros nombres
  • Primer apellido
  • Otros apellidos

Adicionalmente la librería intenta detectar el género correspondiente al nombre (femenino o masculino).

La librería usa un diccionario propio de nombre y de reglas y está en capacidad de aprender nuevos términos con el uso, esto quiere decir que entre más se utilice el sistema tendrá mayor precisión.

En la actualidad el sistema no esta en capacidad de aprender nuevas reglas (solo nuevos términos) pero es una funcionalidad que se encuentra en desarrollo.

Tenga en cuenta que si utiliza esta librería en varios proyectos, con instalaciones independientes, no se beneficiará del aprendizaje automático pues las bases de datos serán diferentes. Ud puede exportar los nuevos nombres aprendidos entre las diferentes bases de datos de forma manual pero esto aún no está automatizado.

Se sugiere que ejecute el sistema varias veces sobre la misma colección de nombres para que pueda aprender nuevos nombres que le servirán para mejorar la precisión de la clasificación.

El sistema puede trabajar con nombres y apellidos desconocidos pero no ha sido probado con nombres extranjeros.

Por favor úselo bajo su propia responsabilidad. El licenciamiento le permite usarlo en cualquier proyecto pero siempre debe dar crédito al autor.

INSTALLATION / INSTALACIÓN

composer require micros/splitname

php artisan migrate

HOW TO USE / COMO USAR

use Micros\Splitname\SplitName;

$splitter = new SplitName();

$tests = [
    'Leonardo Forero Sandoval',
    'Díaz Duran, Adriana',
    'José Francisco de San Martín y Matorras.',
    'Manuel José Joaquín del Corazón de Jesús Belgrano.',
    'Cornelio Judas Tadeo de Saavedra y Rodríguez.',
    'Bernardino de la Trinidad González de Rivadavia y Rodríguez de Rivadavia.',
    'Francisco José de Paula Santander Omaña',
    'Simón José Antonio de la Santísima Trinidad Bolívar Ponte y Palacios Blanco',
    'delcy gomez viuda de rodriguez',
    'Carmen Herrera García Vda. de López',
];

foreach ($tests as $test) {
    $parts = $splitter->split($test)['classified'];
    dump($parts);
}

$splitter->process();

micros/splitname 适用场景与选型建议

micros/splitname 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 191 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 micros/splitname 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 micros/splitname 我们能提供哪些服务?
定制开发 / 二次开发

基于 micros/splitname 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 191
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-16