plural sections

This commit is contained in:
lingdocs 2021-04-10 16:30:41 +03:00
parent 8382fc8a4d
commit 46b3b690d4
5 changed files with 270 additions and 1 deletions

40
src/components/Table.js Normal file
View File

@ -0,0 +1,40 @@
import React from "react";
import {
Examples,
} from "@lingdocs/pashto-inflector";
export const femColor = "#FFECEF"
export const mascColor = "#C1D5F4";
const isObject = x => (
typeof x === "object" && x !== null
);
function Table({ headRow, children, opts }) {
return (
<table class="table">
{headRow && <thead>
<tr>
{headRow.map((h, i) => (
<th scope="col" key={`headRow ${i}`}>{h}</th>
))}
</tr>
</thead>}
<tbody>
{children.map((row, i) => (
<tr key={`row ${i}`}>
{row.map((cell, j) => (
<td key={`row ${i}, cell ${j}`} style={cell.gender ? { backgroundColor: cell.gender === "m" ? mascColor : femColor } : {}}>
{isObject(cell)
? <Examples opts={opts}>{[cell]}</Examples>
: cell
}
</td>
))}
</tr>
))}
</tbody>
</table>
);
}
export default Table;

View File

@ -14,6 +14,8 @@ import * as subjunctiveHabitualEquative from "!babel-loader!mdx-loader!./equativ
import * as otherEquatives from "!babel-loader!mdx-loader!./equatives/other-equatives.mdx";
import * as nounsGender from "!babel-loader!mdx-loader!./nouns/nouns-gender.mdx";
import * as nounsPlural from "!babel-loader!mdx-loader!./nouns/nouns-plural.mdx";
import * as arabicPlurals from "!babel-loader!mdx-loader!./nouns/arabic-plurals.mdx";
import * as verbEndings from "!babel-loader!mdx-loader!./verbs/verb-endings.mdx";
import * as rootsAndStems from "!babel-loader!mdx-loader!./verbs/roots-and-stems.mdx";
@ -55,6 +57,14 @@ const contentTree = [
import: nounsGender,
slug: "nouns-gender",
},
{
import: nounsPlural,
slug: "nouns-plural",
},
{
import: arabicPlurals,
slug: "arabic-plurals",
},
],
},
{

View File

@ -0,0 +1,104 @@
---
title: Arabic Plural Nouns
---
import {
Examples,
InlinePs,
defaultTextOptions as opts,
} from "@lingdocs/pashto-inflector";
import Table from "../../components/Table";
export function ArabicPluralTable({ children }) {
return (
<Table headRow={[
<div>
<div>Singular</div>
</div>,
<div>
<div>Arabic Plural</div>
</div>,
]} opts={opts}>
{children}
</Table>
);
}
Pashto has many Arabic loan words, and people often **use the Arabic plural forms of these loan words**. We won't get into how plurals work in Arabic here, but you will learn to recognize and use these plural through lots of exposure.
For now, see if you can notice some of the basic patterns.
Some of the words change drastically:
<ArabicPluralTable>{[
[{p:"حال", f:"haal", e:"condition"}, {p:"احوال", f:"ahwaal", e:"conditions"}],
[{p:"لفظ", f:"lafz", e:"word"}, {p:"الفاظ", f:"alfaaz", e:"words"}],
[{p:"مکتب", f:"maktab", e:"school"}, {p:"مکاتب", f:"makaatib", e:"schools"}],
[{p:"نبي", f:"nabee", e:"prophet"}, {p:"انبیا", f:"ambiyáa", e:"prophets"}],
[{p:"فرد",f:"fard", e:"person"},{p:"افراد", f:"afráad", e:"people"}],
[{p:"قانون", f:"qaanóon", e:"law"},{p:"قوانین", f:"qawaanéen", e:"laws"}],
]}</ArabicPluralTable>
Some add an <InlinePs opts={opts} ps={{ p: "ات", f: "áat" }} /> on the end:
<ArabicPluralTable>{[
[{p:"توجیه", f:"tawjeeh", e:"justification"}, {p:"توجیهات", f:"tawjeehaat", e:"justifications"}],
[{p:"ملاحظه", f:"mUlaahiza", e:"consideration"}, {p:"ملاحظات", f:"mUlaahizaat", e:"considerations"}]
]}</ArabicPluralTable>
And some add an <InlinePs opts={opts} ps={{ p: "ین", f: "éen" }} /> on the end:
<ArabicPluralTable>{[
[{p:"مجاهد", f:"mUjaahíd", e:"religious warrior"}, {p:"مجاهدین", f:"mUjaahidéen", e:"religious warriors"}],
[{p:"متحد", f:"mUtahíd", e:"ally/allied"}, {p:"متحدین", f:"mUtahidéen", e:"allies"}],
[{p:"معتاد", f:"mUtáad", e:"addict"}, {p:"معتادین", f:"mUtaadéen", e:"addicts"}],
[{p:"مهاجر", f:"mUhaajir", e:"immigrant"}, {p:"مهاجرین", f:"mUhaajiréen", e:"immigrants"}],
]}</ArabicPluralTable>
## Notes
### Arabic Plurals are Always Masculine
Once a word is put into it's special Arabic plural form, it's always a *masculine plural* (based on the consonant ending) even if the singular version of the word was feminine.
<ArabicPluralTable>{[
[
{p:"ملاحظه", f:"mUlaahiza", e:"consideration (f.)", sub: "feminine", gender: "f"},
{p:"ملاحظات", f:"mUlaahizaat", e:"considerations (m. pl.)", sub: "masculine", gender: "m"},
],
[
{p:"تجربه", f:"tajraba", e:"experience (f.)", sub: "feminine", gender: "f"},
{p:"تجارب", f:"tajaarab", e:"experiences (m. pl.)", sub: "masculine", gender: "m"},
],
[
{p:"لفظ", f:"lafz", e:"word (m.)", sub: "masculine", gender: "m"},
{p:"الفاظ", f:"alfaaz", e:"words (m. pl.)", sub: "masculine", gender: "m"},
],
[
{p:"قبیله", f:"qabeela", e:"tribe (f.)", sub: "feminine", gender: "f"},
{p:"قبایل", f:"qabaayul", e:"tribes (m. pl.)", sub: "masculine", gender: "m"},
],
]}</ArabicPluralTable>
### Arabic Plurals are Not Always Used
For many words, people may either use the regular Pashto plural endings or the special Arabic form. Here are a couple examples of words that are often said either way.
<Table opts={opts} headRow={["Singular", "Arabic Plural", "Pashto Plural"]}>{[
[
{p:"مکتب", f:"maktab", e:"school"},
{p:"مکاتب", f:"makáatib", e:"schools"},
{p:"مکتبونه", f:"maktaboona", e:"schools"},
],
[
{p:"مهاجر", f:"mUhaajir", e:"immigrant"},
{p:"مهاجرین", f:"mUhaajiréen", e:"immigrants"},
{p:"مهاجران", f:"mUhaajiráan", e:"immigrants"},
],
[
{p:"رابطه", f:"raabitá", e:"connection"},
{p:"روابط", f:"rawáabit", e:"connections"},
{p:"رابطې", f:"raabité", e:"connections"},
],
]}</Table>

View File

@ -192,7 +192,7 @@ But many other words for people will change and follow the rules for their mascu
{
masc: {
ex: {p:"نرس", f:"nurs", e:"male nurse"},
},
},
fem: {
ex: {p: "نرسه", f:"nursa", e: "female nurse" },
},

View File

@ -0,0 +1,115 @@
---
title: Making Nouns Plural
---
import {
Examples,
InlinePs,
defaultTextOptions as opts,
} from "@lingdocs/pashto-inflector";
import Table from "../../components/Table";
export function PluralTable({ children, inflection }) {
return (
<Table headRow={[
<div>
<div>singular</div>
{inflection && <div className="small text-muted">plain</div>}
</div>,
<div>
<div>plural</div>
{inflection && <div className="small text-muted">inflected</div>}
</div>,
]} opts={opts}>
{children}
</Table>
);
}
In Pashto **there are many, many ways that nouns become plural**. It may seem overwhelming at first to learn *all* these different ways of nouns becoming plural. In the beginning, just look at a few. Then keep coming back and see if you're getting familiar with all the different ways that nouns become plural.
The first way is *inflect* a word if possible. Not all words inflect, but if they do, you can use the first inflection to make them plural.
## Plural by Inflection
There are lots of different ways that nouns inflect. Here are some examples using the various types of words and their inflections to show a plural meaning.
### With masculine nouns
<PluralTable inflection>{[
[{ p: "سړی", f: "saRey", e: "man" }, { p: "سړي", f: "saRee", e: "men" }],
[{ p: "سپی", f: "spey", e: "dog" }, { p: "سپي", f: "spee", e: "dog" }],
[{ p: "پښتون", f: "puxtóon", e: "Pashtun" }, { p: "پښتانه", f: "puxtaanu", e: "Pashtuns" }],
[{ p: "غل", f: "ghul", e: "thief" }, { p: "غله", f: "ghlu", e: "thieves" }],
]}</PluralTable>
### With feminine nouns
<PluralTable inflection>{[
[{ p: "ښڅه", f: "xudza", e: "woman" }, { p: "ښځې", f: "xudze", e: "women" }],
[{ p: "پښتنه", f: "puxtana", e: "Pashtun (f.)" }, { p: "پښتنې", f: "puxtane", e: "Pashtuns (f.)" }],
[{ p: "لار", f: "laar", e: "road" }, { p: "لارې", f: "laare", e: "roads" }],
[{ p: "سختي", f: "sakhtée", e: "difficulty" }, { p: "سختۍ", f: "sakhtúy", e: "difficulties" }],
[{ p: "ناجوړتیا", f: "naajoRtyaa", e: "sickness" }, { p: "ناجوړتیاوې", f: "naajoRtyaawe", e: "sicknesses" }],
]}</PluralTable>
Note that in some forms of inflection with feminine nouns the word does not change at all in the first inflection. In these cases the singular and plural are just the same.
<PluralTable inflection>{[
[{ p: "ملګرې", f: "malgúre", e: "friend (f.)" }, { p: "ملګرې", f: "malgúre", e: "friends (f.)" }],
[{ p: "کړکۍ", f: "kuRkúy", e: "window" }, { p: "کړکۍ", f: "kuRkúy", e: "windows" }]
]}</PluralTable>
## Inanimate Plural Ending <InlinePs opts={opts} ps={{ p: "ونه", f: "óona" }} />
For masculine inanimate words that end in a consonant (and some others) you can add the **<InlinePs opts={opts} ps={{ p: "ـونه", f: "-óona" }} /> ending** to make the noun plural.
<PluralTable>{[
[{ p: "کور", f: "kor", e: "house" }, { p: "کورونه", f: "koróona", e: "houses" }],
[{ p: "څیز", f: "tseez", e: "thing" }, { p: "څیزونه", f: "tseezóona", e: "things" }],
[{ p: "کتاب", f: "kitáab", e: "book" }, { p: "کتابونه", f: "kitaabóona", e: "books" }],
]}</PluralTable>
## Animate Plural Ending <InlinePs opts={opts} ps={{ p: "ان", f: "áan" }} />
For many animate nouns (and some others), you can add a <InlinePs opts={opts} ps={{ p: "ان", f: "áan" }} /> ending to make it plural. If the noun ends in a long vowel, you will need to add a <InlinePs opts={opts} ps={{ p: "ګ", f: "g" }} /> before the ending.
### With masculine nouns
<PluralTable>{[
[{ p: "دوست", f: "dost", e: "friend" }, { p: "دوستان", f: "dostáan", e: "friends" }],
[{ p: "مار", f: "maar", e: "snake" }, { p: "ماران", f: "maaráan", e: "snakes" }],
[{ p: "ماما", f: "maamáa", e: "uncle" }, { p: "ماماګان", f: "maamaagáan", e: "uncles" }],
]}</PluralTable>
### With feminine nouns
When we use this with feminine nouns, we need to add an <InlinePs opts={opts} ps={{ p: "ې", f: "e" }} /> on the end.
<PluralTable>{[
[{ p: "بيشو", f: "peeshó", e: "cat 🐱" }, { p: "پیشوګانې", f: "peeshogáane", e: "cats 🐱🐱" }],
[{ p: "استاذ", f: "Ustáaza", e: "teacher (f.) 👩‍🏫" }, { p: "استاذانې", f: "Ustaazáane", e: "teachers (f.) 👩‍🏫👩‍🏫" }],
[{ p: "ډاکټره", f: "DakTára", e: "doctor (f.) 👩‍⚕️"}, { p: "ډاکټرانې", f: "DakTaráane", e: "doctors (f.) 👩‍⚕️👩‍⚕️" }],
]}</PluralTable>
**Note:** Sometimes the <InlinePs opts={opts} ps={{ p: "ونه", f: "óona" }} /> ending is used with animate nouns, and somethimes the <InlinePs opts={opts} ps={{ p: "ان", f: "áan" }} /> ending is used with inanimate nouns as well. For example:
<PluralTable>{[
[{ p: "شی", f: "shey", e: "thing" }, { p: "شیان", f: "sheyáan", e: "things" }],
]}</PluralTable>
## Irregular Plurals
Some nouns just have completely irregular plural forms.
<PluralTable>{[
[{p:"خور", f:"khor", e:"sister"}, {p:"خویندې", f:"khweynde", e:"sisters"}],
[{p:"ورور", f:"wror", e:"brother"}, {p:"وروڼه", f:"wróoNa", e:"brothers"}],
[{p:"نجلۍ", f:"njuluy", e:"girl"},{p:"نچونې", f:"njoone", e:"girls"}],
[{p:"مور", f:"mor", e:"mother"}, {p:"میندې", f:"mende", e:"mothers"}],
[{p:"زوی", f:"zooy", e:"son"}, {p:"زامن", f:"zaamun", e:"sons"}],
[{p:"ترور", f:"tror", e:"aunt"}, {p:"تریندې", f:"treynde", e:"aunts"}],
[{p:"لور", f:"loor", e:"daughter"},{p:"لوڼې", f:"looNe", e:"daughters"}],
[{p:"یور", f:"yor", e:"wife of a husbands' brother"},{p:"یوڼې", f:"yooNe", e:"wives of a husband's brother"}],
[{p:"نږور", f:"nGor", e:"daughter-in-law"},{p:"نږیندې", f:"nGeynde", e:"daughter-in-laws"}],
]}</PluralTable>