File tree 2 files changed +8
-3
lines changed
components/CognateAnalysisModal
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1714,8 +1714,10 @@ class CognateAnalysisModal extends React.Component {
1714
1714
}
1715
1715
1716
1716
if ( Object . values ( field . translations ) . some ( t =>
1717
- t . toLowerCase ( ) === "affix" ||
1718
- t . toLowerCase ( ) === "аффикс" ) ) {
1717
+ t . toLowerCase ( ) . includes ( "affix" ) ||
1718
+ t . toLowerCase ( ) . includes ( "аффикс" ) ||
1719
+ t . toLowerCase ( ) . includes ( "morph" ) ||
1720
+ t . toLowerCase ( ) . includes ( "морф" ) ) ) {
1719
1721
affix_flag = morphology || suggestions ;
1720
1722
meaning_flag = morphology || suggestions ;
1721
1723
}
Original file line number Diff line number Diff line change @@ -950,7 +950,10 @@ const Tools = ({
950
950
} = data ;
951
951
952
952
const isMorphology = ( { field : { translations : tt } } ) =>
953
- Object . values ( tt ) . some ( t => t . toLowerCase ( ) . includes ( "affix" ) || t . toLowerCase ( ) . includes ( "аффикс" ) ) ;
953
+ Object . values ( tt ) . some ( t => t . toLowerCase ( ) . includes ( "affix" ) ||
954
+ t . toLowerCase ( ) . includes ( "аффикс" ) ||
955
+ t . toLowerCase ( ) . includes ( "morph" ) ||
956
+ t . toLowerCase ( ) . includes ( "морф" ) ) ;
954
957
const glottMode = columns . some ( isMorphology ) ? "morphology" : "swadesh" ;
955
958
const glottMenu = columns . some ( isMorphology ) ? "Morphology distance" : "Glottochronology (Swadesh-Starostin)" ;
956
959
const published = english_status === "Published" || english_status === "Limited access" ;
You can’t perform that action at this time.
0 commit comments