cws
Greetings Guest
home > library > journal > view_article
« Back to Articles » Journal
Grammar Table Logic Option
3▲ 3 ▼ 0
Explanation of what the 'logic type' option means.
This public article was written by Admin Sheep, and last updated on 30 Apr 2016, 04:43.

[comments] [history]
13. Pronouns
Menu 1. Example 2. 'AND' logic (default) 3. 'OR' logic 4. 'NOT' logic
?FYI...
This article is a work in progress! Check back later in case any changes have occurred.


The logic type option on grammar tables is a new tool to help decide how your table will relate to words based on their classes. There are three ways that CWS can interpret these (and thus three options): AND, OR, and NOT. The option names don't really mean much, but there's not a lot better we could name them without it still being confusing.

[top]Example

So to begin the explanation, let's look at an example (and hypothetical) language. Let's say that this language has three different ways to classify nouns. The class types, the actual classes and their code can be seen in the three tables below.

Gender[m] Masculine
[f] Feminine
Animacy[a] Animate
[i] Inanmate
Class[1] Class I
[2] Class II
The language then has the following grammar table (with the following classes assigned):
Grammar Table1 mi2
Grammar Table2 mi
Grammar Table3 f
The language also has words with the following classes assigned. Note that where a class assignment is missing, it is assumed that it either has not been classed, or possibly can classed more than one way.
Word1 mi2
Word2 mi
Word3 mi1
Word4 fi
Word5 fa


[top]'AND' logic (default)

If the logic type option is set to AND, then CWS will only apply a grammar table to a word if all the classes assigned the table are also found assigned to the word. This means that should the word have extra classes assigned, the table would still apply.

This logic type is easily the most common that you would use, and is therefore also the default option.

Using the example sentence above, the below table shows whether the Grammar Table 1-3 would be applied to Words 1-5.

Word1Word2Word3Word4Word5
mi2mimi1fifa
Grammar Table1 ✔ will apply✖ will not apply✖ will not apply✖ will not apply✖ will not apply
mi2
Grammar Table2 ✔ will apply✔ will apply✔ will apply✖ will not apply✖ will not apply
mi
Grammar Table3 ✖ will not apply✖ will not apply✖ will not apply✔ will apply✔ will apply
f


[top]'OR' logic

If the logic type option is set to OR, then CWS will only apply a grammar table to a word if any of the classes assigned the table are also found assigned to the word. This means that should the word have extra classes assigned, the table would still apply.

Using the example sentence above, the below table shows whether the Grammar Tables 1-3 would be applied to Words 1-5.

Word1Word2Word3Word4Word5
mi2mimi1fifa
Grammar Table1 ✔ will apply✔ will apply✔ will apply✔ will apply✖ will not apply
mi2
Grammar Table2 ✔ will apply✔ will apply✔ will apply✔ will apply✖ will not apply
mi
Grammar Table3 ✖ will not apply✖ will not apply✖ will not apply✔ will apply✔ will apply
f


[top]'NOT' logic

If the logic type option is set to NOT, then CWS will only apply a grammar table to a word if none of the classes assigned the table are also found assigned to the word. Regardless of what the other classes are, as long as there are no overlaps, the table will apply.

Using the example sentence above, the below table shows whether the Grammar Tables 1-3 would be applied to Words 1-5.

Word1Word2Word3Word4Word5
mi2mimi1fifa
Grammar Table1 ✖ will not apply✖ will not apply✖ will not apply✖ will not apply✔ will apply
mi2
Grammar Table2 ✖ will not apply✖ will not apply✖ will not apply✖ will not apply✔ will apply
mi
Grammar Table3 ✔ will apply✔ will apply✔ will apply✖ will not apply✖ will not apply
f
Comments (3)
[link] [quote] 15-Jun-18 14:08
Conlanger
CWS Conlanger
 Bukár 
@hashi - thank you for the quick support and clarification
[link] [quote] 14-Jun-18 23:47
Language of the Month
Where we pick the featured language of the month
 hashi [ADMIN] [CWSP STAFF]
@Bukár - generally speaking you will need a separate table for each gender/noun class. If you have a word that is, for example, masculine this will mean that only the masculine table will show on that word's page. If you conflated all the genders into one table, then that table would be shown for all words, regardless of their class/gender.
[link] [quote] 14-Jun-18 23:22
Conlanger
CWS Conlanger
 Bukár 
Is there any way for me to make one table for all of my genders and classes of nouns, but only have the gender and class of the noun itself show in the dictionary? Or do I have to make separate tables for each gender and class? Maybe this was explained in the article but I didn't catch it.

Sorry if that was confusing in any way
Edit history
on 30/04/16 04:43+9severyfix code
on 29/02/16 22:40+108hashismall edit
on 18/01/16 19:17+287hashimore formatting fixes
on 18/01/16 19:15-454hashifixed mistake
on 18/01/16 19:13-1976hashiupdated table/colour classes
privacy | FAQs | rules | statistics | graphs | donate | api (indev)
Viewing CWS in: English | Time now is 26-Jun-19 20:15 | Δt: 85.453ms