Moved inflection2 to inflection3

This commit is contained in:
thomashii 2021-05-17 22:50:37 +08:00
parent ea03a12a24
commit 8e4be01565
33 changed files with 33 additions and 43 deletions

View file

@ -1,11 +0,0 @@
name: inflection2
version: 1.0.0
description: Grammatical Inflection encoders.
homepage: https://github.com/thosakwe/dart-inflection
publish_to: none
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
dev_dependencies:
test: ^1.17.3

View file

@ -1,6 +1,4 @@
# Changelog
# 1.0.0
## 1.0.0
* Migrated to support Dart SDK 2.12.x NNBD
## 0.4.3

View file

@ -1,10 +1,6 @@
# Forked
**IMPORTANT NOTE**: This is a *hard fork* of the original `inflection` package,
as the former is now archived, and abandoned.
# Inflection
[![Build Status](https://travis-ci.org/thosakwe/dart-inflection.svg)](https://travis-ci.org/thosakwe/dart-inflection)
# Inflection3
[![version](https://img.shields.io/badge/pub-v1.0.0-brightgreen)](https://pub.dartlang.org/packages/inflection3)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
In grammar, inflection or inflexion is the modification of a word to express
different grammatical categories such as tense, mood, voice, aspect, person,
@ -12,14 +8,17 @@ number, gender and case.
A port of the Rails/ActiveSupport inflector library to Dart.
**IMPORTANT NOTE**: This is a *hard fork* of the original `inflection2` package,
as the former is now archived, and abandoned.
## Usage
A simple usage example:
```dart
import 'package:inflection2/inflection2.dart';
import 'package:inflection3/inflection3.dart';
main() {
void main() {
// Using 'shortcut' functions.
print(pluralize("house")); // => "houses"
@ -43,7 +42,3 @@ main() {
}
```
## Features and bugs
Please file feature requests and bugs at the
[issue tracker](https://github.com/thosakwe/dart-inflection/issues).

View file

@ -1,6 +1,6 @@
import '../lib/inflection2.dart';
import '../lib/inflection3.dart';
main() {
void main() {
// Using 'shortcut' functions.
print(pluralize("house")); // => "houses"

View file

@ -4,7 +4,7 @@
///
/// [ActiveSupport Inflector](https://github.com/rails/rails/tree/master/activesupport/lib/active_support/inflector)
/// [Letter case](http://en.wikipedia.org/wiki/Letter_case#Special_case_styles)
library inflection2;
library inflection3;
import 'src/past.dart';
import 'src/plural.dart';

View file

@ -1,4 +1,4 @@
import '../inflection2.dart';
import '../inflection3.dart';
/// returns true if this word is in the past tense
bool isPastTense(String word) {

View file

@ -0,0 +1,8 @@
name: inflection3
version: 1.0.0
description: Grammatical Inflection encoders.
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/inflection3
environment:
sdk: '>=2.12.0 <3.0.0'
dev_dependencies:
test: ^1.17.4

View file

@ -1,8 +1,8 @@
library inflection.test;
library inflection3.test;
import 'package:test/test.dart';
import '../lib/inflection2.dart';
import '../lib/inflection3.dart';
void main() {
group("The inflection library", () {

View file

@ -1,8 +1,8 @@
library inflection.is_tense.test;
library inflection3.is_tense.test;
import 'package:test/test.dart';
import '../lib/inflection2.dart';
import '../lib/inflection3.dart';
void main() {
group("isTense", () {

View file

@ -1,4 +1,4 @@
library inflection.past.test;
library inflection3.past.test;
import 'package:test/test.dart';

View file

@ -1,8 +1,8 @@
library inflection.plural.test;
library inflection3.plural.test;
import 'package:test/test.dart';
import '../lib/inflection2.dart';
import '../lib/inflection3.dart';
import '../lib/src/uncountable_nouns.dart';
void main() {

View file

@ -1,4 +1,4 @@
library inflection.plural_verb.test;
library inflection3.plural_verb.test;
import 'package:test/test.dart';

View file

@ -1,4 +1,4 @@
library inflection.singular.test;
library inflection3.singular.test;
import 'package:test/test.dart';

View file

@ -1,4 +1,4 @@
library inflection.singular_verb.test;
library inflection3.singular_verb.test;
import 'package:test/test.dart';

View file

@ -1,4 +1,4 @@
library inflection.snake_case.test;
library inflection3.snake_case.test;
import 'package:test/test.dart';

View file

@ -1,4 +1,4 @@
library inflection.spinal_case.test;
library inflection3.spinal_case.test;
import 'package:test/test.dart';