All Projects → gobuffalo → flect

gobuffalo / flect

Licence: MIT License
An inflection engine for golang

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to flect

genny
A framework for writing modular generators
Stars: ✭ 50 (-27.54%)
Mutual labels:  gobuffalo
buffalo-auth
Buffalo auth plugin helps adding username password authentication to your app
Stars: ✭ 32 (-53.62%)
Mutual labels:  gobuffalo
mlmorph
Malayalam Morphological Analyzer using Finite State Transducer
Stars: ✭ 40 (-42.03%)
Mutual labels:  inflection
buffalo-heroku
Archived use github.com/gobuffalo/buffalo-heroku
Stars: ✭ 16 (-76.81%)
Mutual labels:  gobuffalo
tags
HTML tags in Go
Stars: ✭ 50 (-27.54%)
Mutual labels:  gobuffalo
buffalo-goth
Goth Generator for Buffalo
Stars: ✭ 13 (-81.16%)
Mutual labels:  gobuffalo
buffla
URL Shortner written in Buffalo
Stars: ✭ 30 (-56.52%)
Mutual labels:  gobuffalo
dry-inflector
Inflector for Ruby
Stars: ✭ 89 (+28.99%)
Mutual labels:  inflection
sklonenie
Light-weight and fast library to decline Russian names
Stars: ✭ 23 (-66.67%)
Mutual labels:  inflection
KoParadigm
KoParadigm: Korean Inflectional Paradigm Generator
Stars: ✭ 48 (-30.43%)
Mutual labels:  inflection
petrovich elixir
Elixir library to inflect Russian first, last, and middle names.
Stars: ✭ 37 (-46.38%)
Mutual labels:  inflection
RussianNounsJS
Склонение существительных по падежам. Обычно требуются только форма в именительном падеже, одушевлённость и род.
Stars: ✭ 29 (-57.97%)
Mutual labels:  inflection
buffalo-azure
A gobuffalo plugin for working with Azure.
Stars: ✭ 29 (-57.97%)
Mutual labels:  gobuffalo
rsmorphy
Morphological analyzer / inflection engine for Russian and Ukrainian languages rewritten in Rust
Stars: ✭ 27 (-60.87%)
Mutual labels:  inflection
EnglishText.jl
Utilities for English-language quirks in Julia
Stars: ✭ 12 (-82.61%)
Mutual labels:  inflection
syntaxmaker
The NLG tool for Finnish
Stars: ✭ 19 (-72.46%)
Mutual labels:  inflection
Buffalo
Rapid Web Development w/ Go
Stars: ✭ 6,476 (+9285.51%)
Mutual labels:  gobuffalo
Packr
The simple and easy way to embed static files into Go binaries.
Stars: ✭ 3,332 (+4728.99%)
Mutual labels:  gobuffalo
buffalo-heroku
Sets up and deploys apps to Heroku
Stars: ✭ 14 (-79.71%)
Mutual labels:  gobuffalo
suite
A test suite for Buffalo applications
Stars: ✭ 24 (-65.22%)
Mutual labels:  gobuffalo

Flect

GoDoc CI Go Report Card

This is a new inflection engine to replace https://github.com/markbates/inflect designed to be more modular, more readable, and easier to fix issues on than the original.

Installation

$ go get -u -v github.com/gobuffalo/flect

github.com/gobuffalo/flect

GoDoc

The github.com/gobuffalo/flect package contains "basic" inflection tools, like pluralization, singularization, etc...

The Ident Type

In addition to helpful methods that take in a string and return a string, there is an Ident type that can be used to create new, custom, inflection rules.

The Ident type contains two fields.

  • Original - This is the original string that was used to create the Ident
  • Parts - This is a []string that represents all of the "parts" of the string, that have been split apart, making the segments easier to work with

Examples of creating new inflection rules using Ident can be found in the github.com/gobuffalo/flect/name package.

github.com/gobuffalo/flect/name

GoDoc

The github.com/gobuffalo/flect/name package contains more "business" inflection rules like creating proper names, table names, etc...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].