#151 [bug] Spanish generator broken

This commit is contained in:
Avris 2020-12-25 12:26:21 +01:00
parent b845ac3cd3
commit 1b45280e8f
2 changed files with 2 additions and 4 deletions

View File

@ -451,8 +451,8 @@ export class Pronoun {
data[data.length - 1],
false,
m,
data[MORPHEMES.length].split('').map(p => parseInt(p) === 1),
data[MORPHEMES.length + 1].split('').map(p => parseInt(p) === 1),
config.pronouns.plurals ? data[MORPHEMES.length].split('').map(p => parseInt(p) === 1) : [false],
config.pronouns.honorifics ? data[MORPHEMES.length + 1].split('').map(p => parseInt(p) === 1) : [false],
[],
null,
false,

View File

@ -5,8 +5,6 @@ export default class Compressor {
const baseFirst = base[0];
const baseRest = base.slice(1);
console.log(data, base);
if (dataFirst !== baseFirst || dataRest.length !== baseRest.length) {
throw 'Cannot compress data, format does not match the base';
}