-
Notifications
You must be signed in to change notification settings - Fork 2
/
help.txt
167 lines (131 loc) · 4.96 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
GENERATE
====
The generate command is used to create a new word using rules in the configuration.
Enter command: generate
Enter word form (adjective/adverb/noun/verb/other): noun
Enter word in English: t-shirt
Conlang English Form
------------ --------- ------
kōnbőnkőn t-shirt noun
/kɔːnbønkøn/
[kɔːnbønkøn]
Accept word? (y/n): y
Add custom field? (y/n): n
Word saved in database!
Custom fields can be specified or created during generation.
Add custom field? (y/n): y
Enter desired field (form/gender/modality/dissonance/other): gender
Enter word value (male/other): other
Enter new word value: female
====
ADD
====
The add command is used to add pre-existing words to the database.
Enter command: add
Enter meaning in English: pig
Enter word in conlang: yokotun
Enter word form (adjective/adverb/noun/verb/other): noun
Add custom field? (y/n): n
Word saved in database!
====
MODIFY
====
The modify command is used to modify a pre-existing word in-place.
Enter command: modify
Enter word in conlang: yokotun
Enter field to modify (word/english/form/gender/NEW/DELETE): DELETE
Enter field to delete (form/gender): gender
Finished modifying? (y/n): n
Enter field to modify (word/english/form/NEW/DELETE): english
Enter new value: pig/sow
Finished modifying? (y/n): y
LIST
====
The list command lists words in the database, and can be filtered by specific field.
Enter list type (all/field): field
Enter desired field (form/gender/modality/dissonance): form
Enter option to list (adjective/adverb/noun/verb): noun
English Conlang Form
---------- -------------- ------
test ān noun
weekend hőnyőnhān noun
eye yőntsēnsen noun
muffin pēto noun
t-shirt kōnbőnkőn noun
pig yokotun noun
The command autodetects fields and options present within the database.
====
SEARCH
====
The search command can search by English or conlang word.
search term: test
English Conlang Form
--------- --------- ------
test kōndőn noun
/kɔːndøn/
[kɔːndøn]
====
DECLINE
====
The decline command puts a specified word into a conjugated or declined form as specified by rules in the configuration file.
Enter word (in conlang) to decline: pōyōmő
Select declension:
(1) prog
(2) inch
Enter selection: 1
Conlang English Form Gender Modality Dissonance
------------- --------- ------ -------- ---------- ------------
pōyōmőba to drawl verb
/pɔːjɔːmøba/
[pʷɔːjɔːmøba]
Rules are specified in the configuration file using regular expressions, as seen in the following example:
[DECLENSION]
PROG = $->ba
INCH = $->tse
Here, the INCH (inchoative) rule changes the end of the line to 'tse', in effect adding a suffix. Through specifying these rules using regular expressions, suffixes, prefixes, and infixes can all be easily handled by Lexeme.
====
IMPORT
====
The import command imports a csv file into the current database. The csv format should look something like this:
id,word,english,form,gender,modality,dissonance
1,en,dog,noun,,,
7,hőnyőnhān,weekend,noun,,,
9,yőntsēnsen,eye,noun,,,
12,tākēsapa,poor,adjective,,,
13,behatā,rich,adjective,male,,
14,yanpenkān,headphones,noun,,,
15,dadepēpe,to run,verb,,fast,
Custom fields like gender will be autodetected by Lexeme and included in the database. The id field is not necessary but will be present if the csv file has previously been exported from Lexeme. The format of the file to import can be somewhat flexible, and Lexeme should autodetect the delimiter character.
====
BATCH
====
The batch command allows a text file of English words to be used in generation. The command will step through each word in the file, structured like so:
lemonade
to hit
soft
quickly
On each word, it will run generation with the word as the English base.
====
STATISTICS
====
The statistics command simply outputs some statistics about the word database.
====
QUIT
====
Fairly self-explanatory.
====
EXPORT
====
The export command simply exports the current database to a specified file in csv format. This can then be imported into spreadsheet programs like Libreoffice Calc or programs such as Polyglot.
====
EXPORTWORDS
====
The exportwords command exports the current database into a text file, with strings formatted including to a template specified in the configuration file. For example, the following setting substitutes the fields of word, english, and form:
[EXPORT]
Format = {{word}} ({{form}}) - {{english}}
This produces a text file in this format:
tākēsapa (adjective) - poor
behatā (adjective) - rich
yanpenkān (noun) - headphones
All fields, including custom fields, can be specified in templates through the use of the {{field}} syntax. If a word does not have the specified field, that part of the output will be blank.
====