Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

New inflection #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/inflector_portuguese.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module Inflector
inflect.plural(/ão$/i, 'ões')
inflect.plural(/^(irm|m)ão$/i, '\1ãos')
inflect.plural(/^(alem|c|p)ão$/i, '\1ães')

# Termos compostos (doce de banana, base de dados)
inflect.plural(/(^\w+)\s(de\s\w+)/i, '\1s \2')

# Sem acentos...
inflect.plural(/ao$/i, 'oes')
Expand Down