Overview
| Comment: | [core][fr][js] missing function, and useless code |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fr | core | rg |
| Files: | files | file ages | folders |
| SHA3-256: |
bc565ecc300bf05064e85d4a31253c49 |
| User & Date: | olr on 2018-09-11 12:59:20 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-09-11
| ||
| 13:17 | [core][fr] analyses: update functions check-in: 6c3d434a28 user: olr tags: fr, core, rg | |
| 12:59 | [core][fr][js] missing function, and useless code check-in: bc565ecc30 user: olr tags: fr, core, rg | |
| 12:58 | [core][fr][py] remove useless code check-in: 0534e554b4 user: olr tags: fr, core, rg | |
Changes
Modified gc_lang/fr/modules-js/gce_analyseur.js from [62ebd0a2ec] to [427ee71140].
1 2 3 4 5 6 7 8 9 |
//// GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language
/*jslint esversion: 6*/
function rewriteSubject (s1, s2) {
// s1 is supposed to be prn/patr/npr (M[12P])
if (s2 == "lui") {
return "ils";
}
if (s2 == "moi") {
| > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
//// GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language
/*jslint esversion: 6*/
function g_morphVC (dToken, sPattern, sNegPattern="") {
let nEnd = dToken["sValue"].lastIndexOf("-");
if (dToken["sValue"].includes("-t-")) {
nEnd = nEnd - 2;
}
return g_morph(dToken, sPattern, sNegPattern, 0, nEnd, false);
}
function rewriteSubject (s1, s2) {
// s1 is supposed to be prn/patr/npr (M[12P])
if (s2 == "lui") {
return "ils";
}
if (s2 == "moi") {
|
| ︙ | ︙ | |||
114 115 116 117 118 119 120 |
function mbUnit (s) {
if (/[µ\/⁰¹²³⁴⁵⁶⁷⁸⁹Ωℓ·]/.test(s)) {
return true;
}
if (s.length > 1 && s.length < 16 && s.slice(0, 1).gl_isLowerCase() && (!s.slice(1).gl_isLowerCase() || /[0-9]/.test(s))) {
return true;
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
function mbUnit (s) {
if (/[µ\/⁰¹²³⁴⁵⁶⁷⁸⁹Ωℓ·]/.test(s)) {
return true;
}
if (s.length > 1 && s.length < 16 && s.slice(0, 1).gl_isLowerCase() && (!s.slice(1).gl_isLowerCase() || /[0-9]/.test(s))) {
return true;
}
return false;
}
//// Exceptions
const aREGULARPLURAL = new Set(["abricot", "amarante", "aubergine", "acajou", "anthracite", "brique", "caca", "café",
"carotte", "cerise", "chataigne", "corail", "citron", "crème", "grave", "groseille",
"jonquille", "marron", "olive", "pervenche", "prune", "sable"]);
const aSHOULDBEVERB = new Set(["aller", "manger"]);
|