fix Grammar
This commit is contained in:
parent
cfe99ec188
commit
948f707340
@ -26,7 +26,7 @@ export class Grammar {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static articleDetermine(genre) {
|
||||
switch (toLowerCaseNoAccent(genre)) {
|
||||
switch (Grammar.toLowerCaseNoAccent(genre)) {
|
||||
case 'f': case 'feminin': return 'la';
|
||||
case 'p': case 'mp': case 'fp': case 'pluriel': return 'les';
|
||||
default:
|
||||
@ -35,8 +35,8 @@ export class Grammar {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static articleIndétermine(genre) {
|
||||
switch (toLowerCaseNoAccent(genre)) {
|
||||
static articleIndetermine(genre) {
|
||||
switch (Grammar.toLowerCaseNoAccent(genre)) {
|
||||
case 'f': case 'feminin': return 'une';
|
||||
case 'p': case 'fp': case 'mp': case 'pluriel': return 'des';
|
||||
case 'n': case 'neutre': return 'du'
|
||||
@ -58,7 +58,7 @@ export class Grammar {
|
||||
* @param {...any} mots
|
||||
*/
|
||||
static accord(genre, ...mots) {
|
||||
switch (toLowerCaseNoAccent(genre)) {
|
||||
switch (Grammar.toLowerCaseNoAccent(genre)) {
|
||||
default:
|
||||
case 'n': case 'neutre':
|
||||
case 'm': case 'masculin': return mots[0];
|
||||
|
Loading…
Reference in New Issue
Block a user