Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/read_data/read_likert_english.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
participant_id = line[0]
main_question_id = line[4]
main_question = line[7]
sub_question = line[5]
sub_question = line[5] if line[5] not in ['', ' ', ' '] else 'clausal'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace with:

sub_question = 'clausal' if not line[5] or line[5].isspace() else line[5]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or if you know for sure it is not None then only not line[5].isspace())

sub_question_id = main_question_id + "_" + sub_question
main_question = main_question.replace(sub_question, "\u2026")
try:
Expand Down
33 changes: 14 additions & 19 deletions frontend/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,26 @@ <h2 class="subtitle" i18n>About the <i>MiMA</i> Project and Database</h2>
which all belong to the Germanic language family. Secondly, it focuses on dialectal varieties of Dutch.
</p>

<p i18n>By studying the differences and similarities in the structure of the manner adverbials, these can be
related
to the differences and similarities between the languages and language varieties. The sample of
languages/
language varieties in our database allows for this to be done on a fine-grained level.</p>
<p i18n>
This sample of languages/language varieties in our database allows for cross-linguistic comparison
at different levels of fine-grainedness. Because of this, differences and similarities in the structure
of manner adverbials can be insightfully related to factors of cross-linguistic (micro)variation.
</p>
</div>

<h2 class="subtitle" i18n>About the Database</h2>
<div class="content">
<p i18n>
The database contains {{tokenCount}} tokens of manner adverbials, split across XXXX types. These data
primarily
stem from the
MiMA questionnaire research among native speakers, which was conducted in the following manner. By
studying
(dialect)
reference grammars and the broader linguistic literature, and by consulting native speakers, we first
made a
selection
of languages/language varieties that proved interesting for our research purposes. Next, we made
questionnaires
to
The database contains 33,384 translations of 252 prompts (including unattested patterns), from 326

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translations have to be updated and could these counts come from https://github.com/CentreForDigitalHumanities/mima/blob/feature/feedback/frontend/build/count-tokens.js? (or at least make that into a separate issue)

respondents covering 89 Dutch and Frisian varieties. Excluding unattested patterns, it contains
10,054 translations of 221 prompts. The database also contains 25,249 grammaticality judgments of
740 prompts, from 342 respondents covering 102 Germanic varieties. These data primarily
stem from the MiMA questionnaire research among native speakers, which was conducted in the following manner. By
studying (dialect) reference grammars and the broader linguistic literature, and by consulting native speakers, we first
made a selection of languages/language varieties that proved interesting for our research purposes.
Next, we made questionnaires to
systematically chart the possible and impossible patterns in the morphosyntax of the manner adverbials
in these
languages. The Dutch dialect data were collected in the Netherlands and Flanders (Belgium) in
in these languages. The Dutch dialect data were collected in the Netherlands and Flanders (Belgium) in
collaboration with
the <a target="_blank" href="https://meertenspanel.meertens.knaw.nl/">Meertens Panel</a>. The Frisian
data were
Expand Down
34 changes: 17 additions & 17 deletions frontend/src/app/likert-filters/likert-filters.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,32 @@ export class LikertFiltersComponent implements OnInit, OnDestroy {
mode: 'text',
placeholder: $localize`Search in all Fields`,
manual: 'query'
}, {
name: $localize`Question`,
}, {
name: `Judgment`,
field: 'judgmentId',
icon: faThumbtack,
mode: 'dropdown',
placeholder: $localize`Judgment ID`
}, {
name: $localize`Paradigm`,
field: 'mainQuestionId',
icon: faComment,
mode: 'dropdown',
placeholder: $localize`Select Question(s)`
placeholder: $localize`Select Paradigm(s)`
}, {
name: $localize`Question Text`,
name: $localize`Paradigm (Text search)`,
field: 'mainQuestion',
icon: faCommentDots,
mode: 'text',
placeholder: ''
}, {
name: $localize`Sub-Question`,
field: 'subQuestionTextId',
icon: faComment,
mode: 'dropdown',
placeholder: $localize`Select Sub-Question(s)`
}, {
name: $localize`Sub-Question Text`,
// name: $localize`Sub-Question`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just remove the uncommented code

// field: 'subQuestionTextId',
// icon: faComment,
// mode: 'dropdown',
// placeholder: $localize`Select Sub-Question(s)`
// }, {
name: $localize`Manner Adverbial`,
field: 'subQuestion',
icon: faCommentDots,
mode: 'text',
Expand Down Expand Up @@ -97,12 +103,6 @@ export class LikertFiltersComponent implements OnInit, OnDestroy {
icon: faRankingStar,
mode: 'dropdown',
placeholder: $localize`Select Score`
}, {
name: `Judgment`,
field: 'judgmentId',
icon: faThumbtack,
mode: 'dropdown',
placeholder: $localize`Judgment ID`
}];

constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2 class="subtitle is-4 mb-4 has-text-weight-semibold">
<div class="box metadata" [ngClass]="{'is-loading': loading}">
@if (questionExpanded) {
<luu-view>
<luu-line type="example" [value]="model.prompt.highlightedText"></luu-line>
<luu-line type="example" [value]="model.split_item.highlightedText"></luu-line>
<luu-line type="gloss" [value]="model.gloss.highlightedText"></luu-line>
<luu-translation>
<em [innerHTML]="model.en_translation | highlight"></em>
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/app/services/download.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type QuestionRow = {

type JudgmentRow = {
participantId?: MatchedParts,
question?: MatchedParts,
subquestion?: MatchedParts,
dialects?: MatchedParts[],
score: MatchedParts
}
Expand Down Expand Up @@ -47,8 +49,10 @@ const JudgmentColumnNames: {

const JudgmentColumnOrder: (keyof JudgmentRow)[] =
[
'score',
'participantId',
'question',
'subquestion',
'score',
'dialects'
];

Expand Down Expand Up @@ -122,6 +126,8 @@ export class DownloadService {

yield {
participantId: response.participantId,
question: judgment.mainQuestion,
subquestion: judgment.subQuestion,
dialects: response.dialects,
score: response.score
};
Expand Down
14 changes: 8 additions & 6 deletions frontend/src/app/services/filter-management.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ export class FilterManagementService implements OnDestroy {
labels[judgment.mainQuestionId] = `[${judgment.mainQuestionId}] ${judgment.mainQuestion}`;
break;

case 'subQuestionTextId':
subQuestions[judgment.subQuestionTextId] = judgment.subQuestion;
break;
// DISABLING BECAUSE NOT USEFUL FOR USER
// case 'subQuestionTextId':
// subQuestions[judgment.subQuestionTextId] = judgment.subQuestion;
// break;

case 'responses':
// not used
Expand All @@ -423,9 +424,10 @@ export class FilterManagementService implements OnDestroy {
}
}

for (let [id, text] of Object.entries(subQuestions)) {
labels[id] = `[${id}] ${text}`;
}
// DISABLING BECAUSE NOT USEFUL FOR USER
// for (let [id, text] of Object.entries(subQuestions)) {
// labels[id] = `[${id}] ${text}`;
// }

return labels;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/services/judgments.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class JudgmentsService extends VisibilityService<LikertComponent, Matched
mainQuestionId: entry['main_question_id'],
subQuestion: entry['sub_question'],
subQuestionTextId: entry['sub_question_text_id'],
gloss: entry['gloss'],
gloss: entry['gloss'].replace(' ', ' '),
translation: entry['translation'],
responses,
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/services/questionnaire.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class QuestionnaireService extends VisibilityService<QuestionnaireItemCom
split_item: entry['split_item'],
chapter: entry['chapter'],
subtags: entry['subtags'],
gloss: entry['gloss'],
gloss: entry['gloss'].replace(' ', ' '),
en_translation: entry['en_translation'],
answers: answers
};
Expand Down
Loading