Commit b50fe4d7 authored by Ludan Stoecklé's avatar Ludan Stoecklé

1.16.6

parent 77679387
......@@ -20,7 +20,7 @@ stages:
# variables etc.
variables:
ROSAENLG_VERSION: 1.16.5
ROSAENLG_VERSION: 1.16.6
DOCKER_REGISTRY: registry.gitlab.com/rosaenlg-projects/rosaenlg
DOCKER_CLI_ROOT: ${DOCKER_REGISTRY}/cli
DOCKER_SERVER_ROOT: ${DOCKER_REGISTRY}/server
......
{
"name": "browser-ide-demo-2",
"version": "0.3.5",
"version": "0.3.6",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......@@ -41,8 +41,8 @@
"gulp-awspublish": "^4.0.1",
"gulp-rename": "^2.0.0",
"merge-stream": "^2.0.0",
"rosaenlg": "1.16.5",
"rosaenlg-packager": "0.3.5",
"rosaenlg": "1.16.6",
"rosaenlg-packager": "0.3.6",
"s3": "^4.4.0",
"vue-simple-alert": "^1.1.1",
"vue-template-compiler": "^2.6.11"
......
{
"name": "english-a-an-list",
"version": "0.8.5",
"version": "0.8.6",
"description": "English words and adjectives that are preceded by the indefinite article 'an', based on WordNet",
"main": "dist/aan.json",
"scripts": {
......
{
"name": "english-a-an",
"version": "0.8.5",
"version": "0.8.6",
"description": "English a/an indefinite articles, based on WordNet",
"main": "dist/index.js",
"scripts": {
......@@ -44,7 +44,7 @@
}
},
"devDependencies": {
"english-a-an-list": "0.8.5"
"english-a-an-list": "0.8.6"
},
"keywords": [
"English",
......
......@@ -12,6 +12,7 @@ It exposes a single function, `getDet`, that takes 3 arguments:
* number of the *owner* (string): `S` or `P`
* number of the *owned* (string): `S` or `P`
* distance (string, optional, only used for `DEMONSTRATIVE`): `NEAR` (_this these_) or `FAR` (_that those_)
* boolean to force usage of _the_ when `DEFINITE` plural (default is false: no article when definite plural)
## Installation
```sh
......
const determiners = require('./dist/index.js');
// the
console.log(determiners.getDet('DEFINITE', null, null, 'S', null));
console.log(determiners.getDet('DEFINITE', null, null, 'S', null, null));
// those
console.log(determiners.getDet('DEMONSTRATIVE', null, null, 'P', 'FAR'));
console.log(determiners.getDet('DEMONSTRATIVE', null, null, 'P', 'FAR', null));
// their
console.log(determiners.getDet('POSSESSIVE', null, 'P', 'S', null));
console.log(determiners.getDet('POSSESSIVE', null, 'P', 'S', null, null));
......@@ -9,6 +9,7 @@ export function getDet(
numberOwner: Numbers,
numberOwned: Numbers,
dist: Dist,
forceArticlePlural: boolean,
): string {
if (detType != 'DEFINITE' && detType != 'INDEFINITE' && detType != 'DEMONSTRATIVE' && detType != 'POSSESSIVE') {
const err = new Error();
......@@ -46,7 +47,11 @@ export function getDet(
return 'the';
}
case 'P': {
return '';
if (forceArticlePlural) {
return 'the';
} else {
return '';
}
}
}
......
{
"name": "english-determiners",
"version": "2.16.5",
"version": "2.16.6",
"description": "English determiners",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
......@@ -2,40 +2,43 @@ const assert = require('assert');
const lib = require('../dist/index.js');
const testCases = [
['DEFINITE', null, null, 'S', null, 'the'],
['DEFINITE', null, null, 'P', null, ''],
['INDEFINITE', null, null, 'S', null, 'a'],
['INDEFINITE', null, null, 'P', null, ''],
['DEMONSTRATIVE', null, null, 'S', 'NEAR', 'this'],
['DEMONSTRATIVE', null, null, 'S', 'FAR', 'that'],
['DEMONSTRATIVE', null, null, 'P', 'NEAR', 'these'],
['DEMONSTRATIVE', null, null, 'P', null, 'these'],
['DEMONSTRATIVE', null, null, 'P', 'FAR', 'those'],
['DEFINITE', null, null, 'S', null, null, 'the'],
['DEFINITE', null, null, 'P', null, null, ''],
['DEFINITE', null, null, 'P', null, false, ''],
['DEFINITE', null, null, 'P', null, true, 'the'],
['INDEFINITE', null, null, 'S', null, null, 'a'],
['INDEFINITE', null, null, 'P', null, null, ''],
['DEMONSTRATIVE', null, null, 'S', 'NEAR', null, 'this'],
['DEMONSTRATIVE', null, null, 'S', 'FAR', null, 'that'],
['DEMONSTRATIVE', null, null, 'P', 'NEAR', null, 'these'],
['DEMONSTRATIVE', null, null, 'P', null, null, 'these'],
['DEMONSTRATIVE', null, null, 'P', 'FAR', null, 'those'],
['POSSESSIVE', 'M', 'S', null, null, 'his'],
['POSSESSIVE', 'F', 'S', null, null, 'her'],
['POSSESSIVE', 'N', 'S', null, null, 'its'],
['POSSESSIVE', 'N', 'P', null, null, 'their'],
['POSSESSIVE', 'M', 'S', null, null, null, 'his'],
['POSSESSIVE', 'F', 'S', null, null, null, 'her'],
['POSSESSIVE', 'N', 'S', null, null, null, 'its'],
['POSSESSIVE', 'N', 'P', null, null, null, 'their'],
];
describe('english-determiners', function() {
describe('#getDet()', function() {
describe('nominal', function() {
testCases.forEach(function(testCase) {
describe('english-determiners', function () {
describe('#getDet()', function () {
describe('nominal', function () {
testCases.forEach(function (testCase) {
const detType = testCase[0];
const genderOwner = testCase[1];
const numberOwner = testCase[2];
const numberOwned = testCase[3];
const dist = testCase[4];
const expected = testCase[5];
const forceArticlePlural = testCase[5];
const expected = testCase[6];
it(`${detType} owner:${genderOwner}${numberOwner} owned:${numberOwned} ${dist} => ${expected}`, function() {
assert.equal(lib.getDet(detType, genderOwner, numberOwner, numberOwned, dist), expected);
it(`${detType} owner:${genderOwner}${numberOwner} owned:${numberOwned} ${dist} forceArticlePlural: ${forceArticlePlural} => ${expected}`, function () {
assert.equal(lib.getDet(detType, genderOwner, numberOwner, numberOwned, dist, forceArticlePlural), expected);
});
});
});
describe('edge cases', function() {
describe('edge cases', function () {
it('invalid det type', () => assert.throws(() => lib.getDet('blabla', null, null, 'S', null), /determiner/));
it('invalid number owned', () => assert.throws(() => lib.getDet('DEFINITE', null, null, 'X', null), /number/));
it('invalid dist', () => assert.throws(() => lib.getDet('DEMONSTRATIVE', null, null, 'S', 'NEAR_FAR'), /dist/));
......
{
"name": "english-ordinals",
"version": "0.2.5",
"version": "0.2.6",
"description": "Ordinal numbers in English: 1 => first etc.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "english-plurals-list",
"version": "0.8.5",
"version": "0.8.6",
"description": "English irregular plurals list, based on WordNet",
"main": "dist/plurals.json",
"scripts": {
......
{
"name": "english-plurals",
"version": "0.8.5",
"version": "0.8.6",
"description": "English plural of words",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,7 +45,7 @@
}
},
"devDependencies": {
"english-plurals-list": "0.8.5"
"english-plurals-list": "0.8.6"
},
"keywords": [
"words",
......
{
"name": "english-verbs-gerunds",
"version": "0.8.5",
"version": "0.8.6",
"description": "English irregular gerunds list (-ing), based on WordNet",
"main": "dist/gerunds.json",
"scripts": {
......
{
"name": "english-verbs-helper",
"version": "0.8.5",
"version": "0.8.6",
"description": "English verbs conjugation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,8 +45,8 @@
}
},
"devDependencies": {
"english-verbs-gerunds": "0.8.5",
"english-verbs-irregular": "0.8.5"
"english-verbs-gerunds": "0.8.6",
"english-verbs-irregular": "0.8.6"
},
"keywords": [
"verbs",
......
{
"name": "english-verbs-irregular",
"version": "0.8.5",
"version": "0.8.6",
"description": "English irregular verbs list (JSON)",
"main": "dist/verbs.json",
"scripts": {
......
{
"name": "french-adjectives-wrapper",
"version": "0.2.5",
"version": "0.2.6",
"description": "Agreement of adjectives in French - Wrapper",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,8 +45,8 @@
}
},
"dependencies": {
"french-adjectives": "2.16.5",
"french-contractions": "2.16.5"
"french-adjectives": "2.16.6",
"french-contractions": "2.16.6"
},
"keywords": [
"french",
......
{
"name": "french-adjectives",
"version": "2.16.5",
"version": "2.16.6",
"description": "Agreement of adjectives in French",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,7 +45,7 @@
}
},
"dependencies": {
"french-contractions": "2.16.5"
"french-contractions": "2.16.6"
},
"keywords": [
"french",
......
{
"name": "french-contractions",
"version": "2.16.5",
"version": "2.16.6",
"description": "French contractions: le hérisson, l'homme, ce yaourt, cet arbre",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "french-determiners",
"version": "2.16.5",
"version": "2.16.6",
"description": "French determiners",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "french-ordinals",
"version": "2.16.5",
"version": "2.16.6",
"description": "Ordinal numbers in French: 12 => douzième",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "french-verbs-intransitive",
"version": "0.9.5",
"version": "0.9.6",
"description": "list of intransitive French verbs",
"main": "dist/intransitive.json",
"scripts": {
......
{
"name": "french-verbs-lefff",
"version": "0.9.5",
"version": "0.9.6",
"description": "French verbs conjugation data, based on the Lefff content",
"main": "dist/conjugations.json",
"scripts": {
......
{
"name": "french-verbs-transitive",
"version": "0.9.5",
"version": "0.9.6",
"description": "French transitive verbs, based on Wikipedia",
"main": "dist/transitive.json",
"scripts": {
......
{
"name": "french-verbs",
"version": "2.16.5",
"version": "2.16.6",
"description": "French verbs conjugation",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,11 +45,11 @@
}
},
"dependencies": {
"french-contractions": "2.16.5",
"french-verbs-transitive": "0.9.5"
"french-contractions": "2.16.6",
"french-verbs-transitive": "0.9.6"
},
"devDependencies": {
"french-verbs-lefff": "0.9.5"
"french-verbs-lefff": "0.9.6"
},
"keywords": [
"verbs",
......
{
"name": "french-words-gender-lefff",
"version": "0.9.5",
"version": "0.9.6",
"description": "French words gender, based on the Lefff content",
"main": "dist/words.json",
"scripts": {
......
{
"name": "french-words",
"version": "0.2.5",
"version": "0.2.6",
"description": "Gender and plural of French words",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -48,7 +48,7 @@
"pluralize-fr": "^1.0.1"
},
"devDependencies": {
"french-words-gender-lefff": "0.9.5",
"french-words-gender-lefff": "0.9.6",
"gulp": "^4.0.2"
},
"keywords": [
......
{
"name": "german-adjectives-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "German adjectives dictionnary, based on the german-pos-dict content",
"main": "dist/adjectives.json",
"scripts": {
......
{
"name": "german-adjectives",
"version": "2.16.5",
"version": "2.16.6",
"description": "German adjectives agreement",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,7 +45,7 @@
}
},
"devDependencies": {
"german-adjectives-dict": "0.9.5"
"german-adjectives-dict": "0.9.6"
},
"keywords": [
"adjectives",
......
{
"name": "german-determiners",
"version": "2.16.5",
"version": "2.16.6",
"description": "German determiners",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "german-dict-helper",
"version": "2.16.5",
"version": "2.16.6",
"description": "Helper functions on an included database derived from german-pos-dict",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "german-ordinals",
"version": "2.16.5",
"version": "2.16.6",
"description": "Ordinal numbers in German: 12 => zwölfte",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "german-verbs-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "German verbs dictionnary, based on the german-pos-dict content",
"main": "dist/verbs.json",
"scripts": {
......
{
"name": "german-verbs",
"version": "2.16.5",
"version": "2.16.6",
"description": "German verbs, based on german-pos-dict",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,7 +45,7 @@
}
},
"devDependencies": {
"german-verbs-dict": "0.9.5"
"german-verbs-dict": "0.9.6"
},
"keywords": [
"verbs",
......
{
"name": "german-words-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "German words dictionnary, based on the german-pos-dict content",
"main": "dist/words.json",
"scripts": {
......
{
"name": "german-words",
"version": "2.16.5",
"version": "2.16.6",
"description": "Gender and case of German words",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -45,7 +45,7 @@
}
},
"devDependencies": {
"german-words-dict": "0.9.5"
"german-words-dict": "0.9.6"
},
"keywords": [
"words",
......
{
"name": "italian-adjectives-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "Italian adjectives dictionnary, based on the morph-it linguistic resource",
"main": "dist/adjectives.json",
"scripts": {
......
{
"name": "italian-adjectives",
"version": "2.16.5",
"version": "2.16.6",
"description": "Italian adjectives helper",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -41,7 +41,7 @@
}
},
"devDependencies": {
"italian-adjectives-dict": "0.9.5"
"italian-adjectives-dict": "0.9.6"
},
"keywords": [
"adjectives",
......@@ -50,6 +50,6 @@
"author": "Ludan Stoecklé <[email protected]>",
"license": "MIT",
"dependencies": {
"rosaenlg-filter": "2.16.5"
"rosaenlg-filter": "2.16.6"
}
}
{
"name": "italian-determiners",
"version": "2.16.5",
"version": "2.16.6",
"description": "Italian determiners",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "italian-ordinals-cardinals",
"version": "2.16.5",
"version": "2.16.6",
"description": "Ordinal and cardinal numbers in Italian",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "italian-verbs-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "Italian verbs dictionnary, based on morph-it",
"main": "dist/verbs.json",
"scripts": {
......
{
"name": "italian-verbs",
"version": "2.16.5",
"version": "2.16.6",
"description": "Italian verbs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......@@ -41,7 +41,7 @@
}
},
"devDependencies": {
"italian-verbs-dict": "0.9.5"
"italian-verbs-dict": "0.9.6"
},
"keywords": [
"verbs",
......
{
"name": "italian-words-dict",
"version": "0.9.5",
"version": "0.9.6",
"description": "Italian words dictionnary, based on the morph-it linguistic resource",
"main": "dist/words.json",