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

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

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
[link] [quote] [move] [edit] [del] 10-Mar-24 23:39 [Deactivated User]
Good
[link] [quote] [move] [edit] [del] 14-Aug-20 03:12 [Deactivated User]
Please note that nobody is informed when people leave questions on system articles. If you need help, use the forums.
[link] [quote] [move] [edit] [del] 28-Sep-19 21:09 [Deactivated User]
The NOT logic seems to be the NOR logic. Would it be possible to make another, NAND logic, which would include the table except if the word belongs to all the classes listed?
[link] [quote] [move] [edit] [del] 15-Jun-18 14:08 [Deactivated User]
@hashi - thank you for the quick support and clarification
[link] [quote] 14-Jun-18 23:47 [Deactivated User]
@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] [move] [edit] [del] 14-Jun-18 23:22 [Deactivated User]
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+9[Deactivated User]fix code
on 29/02/16 22:40+108[Deactivated User]small edit
on 18/01/16 19:17+287[Deactivated User]more formatting fixes
on 18/01/16 19:15-454[Deactivated User]fixed mistake
on 18/01/16 19:13-1976[Deactivated User]updated table/colour classes
privacy | FAQs | rules | statistics | graphs | donate | api (indev)
Viewing CWS in: English | Time now is 07-May-24 15:47 | Δt: 743.7401ms