Humanizer
9,970
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
C#
语言
创建时间
最近更新
项目能做什么
.NET 人性化格式工具,满足字符串、枚举、日期时间、数字和数量的展示与处理需求。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Humanizer
[](https://dev.azure.com/dotnet/Humanizer/_build?definitionId=14)
[](https://www.nuget.org/packages/Humanizer)
[](https://www.nuget.org/packages/Humanizer)
Humanizer is a .NET library for turning strings, enums, dates, times, durations, numbers, quantities, and collections into human-friendly text.
## Install
```console
dotnet add package Humanizer
```
Select your Humanizer version in the [documentation site](https://humanizr.net/docs/) for version-correct package, framework, and API guidance.
## Example
```csharp
using System.Globalization;
using Humanizer;
var culture = CultureInfo.GetCultureInfo("en-US");
var text = TimeSpan.FromMinutes(2).Humanize(culture: culture);
var indianNumber = 1_000_000_000L.ToIndianWords(IndianScaleStyle.CroreBased);
var precise = TimeSpan.FromMilliseconds(1500).HumanizeWithFractionalSeconds(
precision: 1,
maxFractionalDigits: 3,
roundingMode: MidpointRounding.ToEven,
culture: culture,
maxUnit: TimeUnit.Second);
Console.WriteLine(text); // 2 minutes
Console.WriteLine(indianNumber); // one hundred crore
Console.WriteLine(precise); // 1.5 seconds
var german = CultureInfo.GetCultureInfo("de-DE");
var duration = TimeSpan.FromDays(7).HumanizeWithCase(
GrammaticalCase.Dative,
culture: german);
Console.WriteLine($"in {duration}"); // in einer Woche
```
In v4 previews, applications can provide the exact noun forms for a culture's
CLDR cardinal categories:
```csharp
var files = new PluralizationForms(
singular: "plik",
other: "pliku",
few: "pliki",
many: "plików");
if (files.TryPluralize(5m, CultureInfo.GetCultureInfo("pl"), out var noun))
Console.WriteLine(noun); // plików
```
`TryPluralize` uses the required cardinal rule for every supported culture and
returns `false` when the selected form was not supplied. `TrySingularize`
resolves any exact form in the same set. See
[inflection and quantities](https://humanizr.net/docs/scenarios/inflection-and-quantities/)
for examples.
`HumanizeWithCase` returns only the duration phrase; add any required
preposition yourself. Singular forms may include a locale-authored one-word
or article, and a locale may encode a count in the unit form. Locales and custom
components without verified case support throw `NotSupportedException`
instead of falling back to English.
V4 previews also provide opt-in decimal SI and binary IEC byte-size APIs:
```csharp
var size = ByteSize.FromBytes(1_000_000);
Console.WriteLine(size.Format(ByteSizeUnitSystem.DecimalSi)); // 1 MB
Console.WriteLine(size.Format(ByteSizeUnitSystem.BinaryIec)); // 976.56 KiB
```
Legacy byte-size APIs keep their established unit factors. See
[byte sizes and rates](https://
阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 42.9 分。该项目在“个人可实施性”维度得 37 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 Humanizer 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| blader/humanizer | 中文介绍暂未生成 Agent skill that removes signs of AI-generated writing from |
67,684 | Python |
| op7418/Humanizer-zh | 中文介绍暂未生成 Humanizer 的汉化版本,Claude Code Skills,旨在消除文本中 AI 生成的痕迹。 |
22,530 | Python |
| AhmadHassan-BTed/Turnitout-Humanizer | 中文介绍暂未生成 FREE FOREVER, NO LIMITS 100% Programmatic, Zero-AI Plagiaris |
12,102 | HTML |
| epoko77-ai/im-not-ai | 中文介绍暂未生成 AI가 쓴 한글을 사람 글처럼 윤문하는 Claude 스킬 — Korean AI-text humanizer: |
6,508 | Python |
| AhmadHassan-BTed/NaSuno-SongHumanizer | 中文介绍暂未生成 AI audio watermark removal & forensic anti-attribution toolk |
5,968 | - |
| Jakeschincariol/instagram-agent-skill | 中文介绍暂未生成 Thirteen Claude skills that run an Instagram account: Reels |
5,889 | Python |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 92 个 Release |
| 社区活跃 | Star 9,970 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/Humanizr/Humanizer.git cd Humanizer # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。