Skip to content

Commit

Permalink
updated grammacodes
Browse files Browse the repository at this point in the history
  • Loading branch information
johenglisch committed Dec 10, 2024
1 parent 9c040d5 commit cda6443
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
11 changes: 10 additions & 1 deletion cldfbench_gasttdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def cmd_makecldf(self, args):

language_table = self.etc_dir.read_csv('languages.csv', dicts=True)
parameter_table = self.etc_dir.read_csv('parameters.csv', dicts=True)
for parameter in parameter_table:
parameter['Grammacodes'] = re.split(r'\s*,\s*', parameter.get('Grammacodes', ''))

example_table = self.raw_dir.read_csv('tdir.examples.csv', dicts=True)
example_table = [
Expand Down Expand Up @@ -176,7 +178,14 @@ def cmd_makecldf(self, args):
args.writer.cldf.add_component(
'LanguageTable',
'http://cldf.clld.org/v1.0/terms.rdf#source')
args.writer.cldf.add_component('ParameterTable')
args.writer.cldf.add_component(
'ParameterTable',
{
'name': 'Grammacodes',
'datatype': 'string',
'separator': ';',
'dc:extent': 'multivalued',
})
args.writer.cldf.add_component('ExampleTable', 'POV', 'Citation')

args.writer.objects['LanguageTable'] = language_table
Expand Down
12 changes: 6 additions & 6 deletions etc/parameters.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ID,Name,Comment_Col,Description
ADN,Adnominal intensifier,Comments (adn_ints),"This parameter shows the most important adnominal self-intensifier in the language, including some information on how it is used grammatically."
EXC,Exclusive intensifier,,This parameter shows the exclusive intensifier (as in 'I managed to do it myself').
REFL,Reflexivizer,Comments (refl),This parameter gives the most important reflexive-marking element of the language.
ATTR,Attributive intensifier (‘own’),,This parameter gives the form of the attributive intensifier (as in 'She brought her own cake.')
SFP,Scalar focus particle (‘even’),,"This parameter gives the form of the scalar additive focus particle, corresponding to 'even'."
ID,Name,Comment_Col,Grammacodes,Topics,Description
ADN,Adnominal intensifier,Comments (adn_ints),"SELFINT, ADNOM","self-intensifier, adnominal","This parameter shows the most important adnominal self-intensifier in the language, including some information on how it is used grammatically."
EXC,Exclusive intensifier,,,,This parameter shows the exclusive intensifier (as in 'I managed to do it myself').
REFL,Reflexivizer,Comments (refl),REFLZR,reflexivizer,This parameter gives the most important reflexive-marking element of the language.
ATTR,Attributive intensifier (‘own’),,"SELFINT, ADN","self-intensifier, adnominal modifier",This parameter gives the form of the attributive intensifier (as in 'She brought her own cake.')
SFP,Scalar focus particle (‘even’),,FOCM,focus marker,"This parameter gives the form of the scalar additive focus particle, corresponding to 'even'."

0 comments on commit cda6443

Please sign in to comment.