irregular plurals
v4.0.0
명사를 불규칙한 복수형 형태에 대한지도
이 라이브러리의 불규칙한 복수는이 규칙을 적용하여 복수를 할 수없는 명사로 정의됩니다.
- 명사가 "s", "x", "z", "ch"또는 "sh"로 끝나면 "es"를 추가하십시오.
- 명사가 "y"로 끝나고 자음이 선행되면 "Y"를 떨어 뜨리고 "IES"를 추가하십시오.
- 명사가 "Y"로 끝나면 모음이 선행되면 "S"를 추가하십시오.
목록은 JSON 파일 일 뿐이며 어디서나 사용할 수 있습니다.
npm install irregular-plurals
import irregularPlurals from 'irregular-plurals' ;
console . log ( irregularPlurals . get ( 'cactus' ) ) ;
//=> 'cacti'
console . log ( irregularPlurals ) ;
/*
Map {
[addendum, 'addenda'],
[alga, 'algae'],
…
}
*/