Commit 527a835 1 parent 49e586a commit 527a835 Copy full SHA for 527a835
File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ class PangeaRepresentation {
103
103
ChoreoRecord ? choreo,
104
104
}) {
105
105
final List <OneConstructUse > uses = [];
106
+ final l2 = MatrixState .pangeaController.languageController.activeL2Code ();
107
+ if (langCode != l2) return uses;
106
108
107
109
// missing vital info so return
108
110
if (event? .roomId == null && metadata? .roomId == null ) {
@@ -151,14 +153,9 @@ class PangeaRepresentation {
151
153
final content = token.text.content;
152
154
153
155
if (choreo == null ) {
154
- final bool inUserL2 = langCode ==
155
- MatrixState .pangeaController.languageController.activeL2Code ();
156
- final useType =
157
- inUserL2 ? ConstructUseTypeEnum .wa : ConstructUseTypeEnum .unk;
158
-
159
156
uses.add (
160
157
OneConstructUse (
161
- useType: useType ,
158
+ useType: ConstructUseTypeEnum .wa ,
162
159
lemma: token.pos,
163
160
form: token.text.content,
164
161
category: "POS" ,
@@ -170,7 +167,7 @@ class PangeaRepresentation {
170
167
for (final entry in token.morph.entries) {
171
168
uses.add (
172
169
OneConstructUse (
173
- useType: useType ,
170
+ useType: ConstructUseTypeEnum .wa ,
174
171
lemma: entry.value,
175
172
form: token.text.content,
176
173
category: entry.key,
@@ -183,7 +180,7 @@ class PangeaRepresentation {
183
180
if (lemma.saveVocab) {
184
181
uses.add (
185
182
token.toVocabUse (
186
- useType ,
183
+ ConstructUseTypeEnum .wa ,
187
184
metadata,
188
185
),
189
186
);
You can’t perform that action at this time.
0 commit comments