Example #1
0
 def col_defs(self):
     return [
         IntegerIdCol(
             self, 'id',
             sDescription="The number in this column is the semantic field number. It "
             "is the first part of the Loanword Typology Code of the words in the "
             "corresponding field."),
         LinkCol(
             self, 'name',
             sDescription="The first 22 fields are the fields of the Intercontinental "
             "Dictionary Series meaning list, proposed by Mary Ritchie Key, and "
             "ultimately based on Carl Darling Buck's (1949) <i>Dictionary of selected"
             " synonyms in the principal Indo-European languages</i>. The other two "
             "fields were added for the Loanword Typology project."),
         NumberOfMeanings(
             self, 'number_of_meanings',
             sDescription="This gives the number of different meanings in each "
             "semantic field."),
         SemanticFieldScoreCol(
             self, 'borrowed_score', sDescription='%s' % hb_borrowed_score()),
         SemanticFieldScoreCol(
             self, 'age_score', sDescription='%s' % hb_age_score()),
         SemanticFieldScoreCol(
             self, 'simplicity_score', sDescription='%s' % hb_simplicity_score()),
     ]
Example #2
0
 def col_defs(self):
     return [
         IntegerIdCol(
             self,
             'id',
             sDescription=
             "The number in this column is the semantic field number. It "
             "is the first part of the Loanword Typology Code of the words in the "
             "corresponding field."),
         LinkCol(
             self,
             'name',
             sDescription=
             "The first 22 fields are the fields of the Intercontinental "
             "Dictionary Series meaning list, proposed by Mary Ritchie Key, and "
             "ultimately based on Carl Darling Buck's (1949) <i>Dictionary of selected"
             " synonyms in the principal Indo-European languages</i>. The other two "
             "fields were added for the Loanword Typology project."),
         NumberOfMeanings(
             self,
             'number_of_meanings',
             sDescription=
             "This gives the number of different meanings in each "
             "semantic field."),
         SemanticFieldScoreCol(self,
                               'borrowed_score',
                               sDescription='%s' % hb_borrowed_score()),
         SemanticFieldScoreCol(self,
                               'age_score',
                               sDescription='%s' % hb_age_score()),
         SemanticFieldScoreCol(self,
                               'simplicity_score',
                               sDescription='%s' % hb_simplicity_score()),
     ]
Example #3
0
 def col_defs(self):
     return list(
         filter(lambda col: not self.semanticfield or col.name != 'sf', [
             LWTCodeCol(self, 'lwt_code'),
             LinkCol(
                 self,
                 'name',
                 sTitle='Meaning',
                 sDescription=
                 "This column shows the labels of the Loanword Typology "
                 "meanings. By clicking on a meaning label, you get more information "
                 "about the meaning, as well as a list of all words that are counterparts "
                 "of that meaning."),
             CoreListCol(self, 'core_list'),
             Col(self,
                 'cat',
                 sTitle='Semantic category',
                 sDescription=
                 "Meanings were assigned to semantic categories with "
                 "word-class-like labels: nouns, verbs, adjectives, adverbs, function "
                 "words. No claim is made about the grammatical behavior of words "
                 "corresponding to these meanings. The categories are intended to be "
                 "purely semantic.",
                 model_col=Meaning.semantic_category,
                 choices=get_distinct_values(Meaning.semantic_category)),
             SemanticFieldCol(
                 self,
                 'sf',
                 sTitle='Semantic field',
                 sDescription=
                 "The first 22 fields are the fields of the Intercontinental "
                 "Dictionary Series meaning list, proposed by Mary Ritchie Key, and "
                 "ultimately based on Carl Darling Buck's (1949) Dictionary of selected "
                 "synonyms in the principal Indo-European languages. The other two fields "
                 "were added for the Loanword Typology project."),
             MeaningScoreCol(self,
                             'borrowed_score',
                             sDescription=literal(
                                 '%s' % hb_borrowed_score())),
             MeaningScoreCol(self,
                             'age_score',
                             sDescription=literal('%s' % hb_age_score())),
             MeaningScoreCol(self,
                             'simplicity_score',
                             sDescription=literal(
                                 '%s' % hb_simplicity_score())),
             Col(self,
                 'representation',
                 model_col=Meaning.representation,
                 sDescription=
                 "This column shows how many counterparts for this meaning "
                 "there are in the 41 languages. The number can be higher than 41 because "
                 "a language may have several counterparts for one meaning (\"synonyms\"),"
                 " and it may be lower than 41, because not all languages may have a "
                 "counterpart for a meaning. "),
         ]))
Example #4
0
 def col_defs(self):
     return list(filter(lambda col: not self.semanticfield or col.name != 'sf', [
         LWTCodeCol(self, 'lwt_code'),
         LinkCol(
             self, 'name', sTitle='Meaning',
             sDescription="This column shows the labels of the Loanword Typology "
             "meanings. By clicking on a meaning label, you get more information "
             "about the meaning, as well as a list of all words that are counterparts "
             "of that meaning."),
         CoreListCol(self, 'core_list'),
         Col(self, 'cat', sTitle='Semantic category',
             sDescription="Meanings were assigned to semantic categories with "
             "word-class-like labels: nouns, verbs, adjectives, adverbs, function "
             "words. No claim is made about the grammatical behavior of words "
             "corresponding to these meanings. The categories are intended to be "
             "purely semantic.",
             model_col=Meaning.semantic_category,
             choices=get_distinct_values(Meaning.semantic_category)),
         SemanticFieldCol(
             self, 'sf', sTitle='Semantic field',
             sDescription="The first 22 fields are the fields of the Intercontinental "
             "Dictionary Series meaning list, proposed by Mary Ritchie Key, and "
             "ultimately based on Carl Darling Buck's (1949) Dictionary of selected "
             "synonyms in the principal Indo-European languages. The other two fields "
             "were added for the Loanword Typology project."),
         MeaningScoreCol(
             self, 'borrowed_score', sDescription='%s' % hb_borrowed_score()),
         MeaningScoreCol(
             self, 'age_score', sDescription='%s' % hb_age_score()),
         MeaningScoreCol(
             self, 'simplicity_score', sDescription='%s' % hb_simplicity_score()),
         Col(self, 'representation',
             model_col=Meaning.representation,
             sDescription="This column shows how many counterparts for this meaning "
             "there are in the 41 languages. The number can be higher than 41 because "
             "a language may have several counterparts for one meaning (\"synonyms\"),"
             " and it may be lower than 41, because not all languages may have a "
             "counterpart for a meaning. "),
     ]))