diff --git a/src/components/CognateAnalysisModal/index.js b/src/components/CognateAnalysisModal/index.js index c4428ba2..bbc1b10e 100644 --- a/src/components/CognateAnalysisModal/index.js +++ b/src/components/CognateAnalysisModal/index.js @@ -1714,8 +1714,10 @@ class CognateAnalysisModal extends React.Component { } if (Object.values(field.translations).some(t => - t.toLowerCase() === "affix" || - t.toLowerCase() === "аффикс" )) { + t.toLowerCase().includes("affix") || + t.toLowerCase().includes("аффикс") || + t.toLowerCase().includes("morph") || + t.toLowerCase().includes("морф"))) { affix_flag = morphology || suggestions; meaning_flag = morphology || suggestions; } diff --git a/src/pages/Perspective/component.js b/src/pages/Perspective/component.js index 9766dc2d..f253bf60 100644 --- a/src/pages/Perspective/component.js +++ b/src/pages/Perspective/component.js @@ -950,7 +950,10 @@ const Tools = ({ } = data; const isMorphology = ({ field: { translations: tt } }) => - Object.values(tt).some(t => t.toLowerCase().includes("affix") || t.toLowerCase().includes("аффикс")); + Object.values(tt).some(t => t.toLowerCase().includes("affix") || + t.toLowerCase().includes("аффикс") || + t.toLowerCase().includes("morph") || + t.toLowerCase().includes("морф")); const glottMode = columns.some(isMorphology) ? "morphology" : "swadesh"; const glottMenu = columns.some(isMorphology) ? "Morphology distance" : "Glottochronology (Swadesh-Starostin)"; const published = english_status === "Published" || english_status === "Limited access";