diff --git a/src/buildTemplate.js b/src/buildTemplate.js index 48b86679..79c53b5d 100644 --- a/src/buildTemplate.js +++ b/src/buildTemplate.js @@ -1,6 +1,7 @@ -import {MORPHEMES, Template} from "./classes"; +import { Template } from "./classes"; import Compressor from "./compressor"; -import {buildDict} from "./helpers"; +import { buildDict } from "./helpers"; +import MORPHEMES from '../data/morphemes'; export const addAliasesToTemplates = (templates) => { const templatesWithAliases = {} diff --git a/src/classes.js b/src/classes.js index 1a52d982..8a1bc937 100644 --- a/src/classes.js +++ b/src/classes.js @@ -1,4 +1,5 @@ import {buildDict, buildList} from "./helpers"; +import MORPHEMES from '../data/morphemes'; export class ExamplePart { constructor(variable, str) { @@ -92,28 +93,6 @@ export class Source { } } -export const MORPHEMES = [ - 'pronoun_n', - 'pronoun_g', - 'pronoun_g_acc', - 'pronoun_d', - 'pronoun_a', - 'pronoun_i', - 'pronoun_l', - 'pronoun_all', - 'adjective_n', - 'adjective_ll', - 'adjective_middle', - 'verb_end_inter', - 'verb_end_about', - 'verb_middle_inter', - 'verb_middle_about', - 'verb_nasal', - 'verb_go', - 'verb_o', - 'honorific', -]; - const escape = s => { if (Array.isArray(s)) { s = s.join('&');