initial commit
|
@ -0,0 +1,27 @@
|
|||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dictionary entries fetched during build
|
||||
/src/words/**/verbs.js
|
||||
/src/words/**/nouns-adjs.js
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
|
@ -0,0 +1,2 @@
|
|||
@lingdocs:registry=https://reg.lingdocs.com
|
||||
//reg.lingdocs.com/:_authToken=${LINGDOCS_NPM_TOKEN}
|
|
@ -0,0 +1,8 @@
|
|||
The MIT License (MIT)
|
||||
Copyright © 2021 lingdocs.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -0,0 +1,6 @@
|
|||
# LingDocs Pashto Grammar
|
||||
|
||||
The source code of this app is licensed under an MIT license.
|
||||
|
||||
The contents of the book, however, (found in `/src/content`) are licensed under a [Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)](
|
||||
https://creativecommons.org/licenses/by-sa/4.0/).
|
|
@ -0,0 +1 @@
|
|||
[0122/001738.459:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"name": "timer",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.15.2",
|
||||
"@lingdocs/pashto-inflector": "^1.0.3",
|
||||
"@testing-library/jest-dom": "^4.2.4",
|
||||
"@testing-library/react": "^9.3.2",
|
||||
"@testing-library/user-event": "^7.1.2",
|
||||
"bootstrap": "4.5.3",
|
||||
"classnames": "^2.2.6",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-router-hash-link": "^2.3.1",
|
||||
"react-scripts": "3.4.3",
|
||||
"react-scrollspy": "^3.4.3",
|
||||
"react-smooth-collapse": "^2.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "node scripts/get-words.js && react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"mdx-loader": "^3.0.2",
|
||||
"node-fetch": "^2.6.1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
/* /index.html 200
|
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
|
@ -0,0 +1,72 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="1000"
|
||||
height="1000"
|
||||
viewBox="0 0 264.58332 264.58333"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
|
||||
sodipodi:docname="closed-book.svg"
|
||||
inkscape:export-filename="D:\offpro\grammar\public\closed-book.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.35"
|
||||
inkscape:cx="433.42859"
|
||||
inkscape:cy="489.99998"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="986"
|
||||
inkscape:window-x="-11"
|
||||
inkscape:window-y="-11"
|
||||
inkscape:window-maximized="1"
|
||||
units="px" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(136.97858,-13.895831)">
|
||||
<path
|
||||
style="opacity:1;fill:#375fd4;fill-opacity:1;stroke:#375fd4;stroke-width:2.21714282;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m 19.450791,272.7988 c -2.07887,-1.30881 -27.9324399,-17.17056 -57.45238,-35.24832 -29.51995,-18.07777 -54.40231,-33.41407 -55.29414,-34.08068 -0.89183,-0.66661 -2.37693,-2.31101 -3.30021,-3.65422 l -1.678687,-2.44219 -0.71817,-62.56971 c -0.39499,-34.41333 -0.61079,-68.012556 -0.47955,-74.664935 0.23255,-11.787838 0.29563,-12.198178 2.481997,-16.145528 6.30365,-11.380811 27.38352,-24.249474 43.31894,-26.444989 10.35158,-1.426196 10.95231,-1.207521 47.1059502,17.14726 18.0508998,9.164231 46.5970498,23.632176 63.4358908,32.150992 23.7588,12.019645 30.91148,15.966033 31.93501,17.619678 1.23114,1.98908 1.3192,7.077192 1.32292,76.440772 0.005,82.74269 0.42843,76.40405 -5.42865,81.15422 -8.41425,6.82406 -12.68817,8.22297 -16.83047,5.50883 -4.30197,-2.81875 -4.19524,-0.83334 -4.19524,-78.04322 0,-62.35552 -0.13887,-71.074272 -1.15512,-72.525186 -0.63533,-0.907052 -5.48288,-3.920564 -10.77233,-6.69671 -5.289461,-2.776143 -15.910501,-8.364685 -23.602311,-12.418983 -55.27251,-29.133723 -75.26484,-39.50899 -77.96957,-40.463274 -6.0678,-2.140846 -11.42224,-1.157384 -19.29222,3.543445 -5.16055,3.082455 -12.06056,9.570567 -11.12984,10.465436 0.36763,0.35347 9.34297,5.382074 19.9452,11.174677 17.2562,9.428043 74.76848,40.945185 87.87894,48.158285 9.07922,4.9952 8.12701,-4.72694 8.12701,82.97742 v 76.32484 l -2.57024,2.57024 c -3.54675,3.54675 -8.21851,3.60201 -13.68273,0.16185 z"
|
||||
id="path826"
|
||||
inkscape:connector-curvature="0"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="A Pashto grammar reference"
|
||||
/>
|
||||
<meta name="theme-color" content="#1965bd" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="%PUBLIC_URL%/favicon-16x16.png">
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<link rel="mask-icon" href="%PUBLIC_URL%/safari-pinned-tab.svg" color="#1965bd">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-TileImage" content="%PUBLIC_URL%/mstile-144x144.png">
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>Pashto Grammar</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"short_name": "Pashto Grammar",
|
||||
"name": "LingDocs Pashto Grammar",
|
||||
"icons": [
|
||||
{
|
||||
"src": "android-chrome-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-256x256.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-384x384.png",
|
||||
"sizes": "384x384",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#DEE1E6",
|
||||
"background_color": "#ffffff"
|
||||
}
|
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 9.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
|
@ -0,0 +1,3 @@
|
|||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="1000.000000pt" height="1000.000000pt" viewBox="0 0 1000.000000 1000.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,1000.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M3328 9925 c-2 -1 -39 -5 -82 -9 -352 -30 -757 -185 -1170 -449 -24
|
||||
-15 -20 -12 -130 -92 -307 -226 -515 -488 -550 -695 -21 -127 -25 -879 -12
|
||||
-2335 8 -771 10 -992 20 -1850 3 -253 8 -680 11 -950 l6 -490 47 -70 c79 -117
|
||||
145 -177 297 -271 77 -47 156 -96 175 -109 59 -38 269 -167 975 -600 374 -229
|
||||
696 -427 715 -440 19 -12 87 -54 150 -92 194 -118 611 -373 675 -413 33 -21
|
||||
101 -62 150 -92 253 -153 513 -312 537 -329 15 -11 30 -19 33 -19 3 0 28 -16
|
||||
55 -35 27 -19 52 -35 54 -35 2 0 89 -52 192 -116 104 -64 201 -124 216 -133
|
||||
15 -9 81 -49 146 -89 173 -106 258 -136 372 -133 104 3 183 45 293 157 l68 69
|
||||
-4 2695 c-3 1482 -7 2733 -10 2780 -10 147 -22 249 -33 300 -3 14 -8 36 -11
|
||||
50 -8 44 -47 111 -82 142 -19 17 -67 45 -106 63 -38 18 -110 55 -160 82 -49
|
||||
27 -121 67 -160 88 -38 21 -115 63 -170 93 -55 30 -118 65 -140 77 -22 12 -69
|
||||
37 -105 57 -56 31 -258 141 -440 240 -30 17 -68 38 -85 48 -16 9 -60 34 -97
|
||||
54 -113 60 -198 107 -293 159 -49 27 -115 63 -145 80 -55 29 -74 40 -245 134
|
||||
-49 28 -119 66 -155 85 -36 19 -130 71 -210 115 -80 43 -152 82 -160 86 -8 4
|
||||
-29 16 -47 26 -17 11 -67 39 -110 62 -102 54 -171 92 -263 144 -41 23 -104 58
|
||||
-140 77 -72 38 -70 37 -425 233 -383 211 -569 315 -577 324 -9 8 90 113 177
|
||||
187 146 125 356 246 510 294 124 38 285 34 399 -11 60 -23 473 -232 831 -419
|
||||
272 -142 328 -172 460 -240 77 -40 167 -87 200 -105 55 -30 123 -65 420 -220
|
||||
61 -31 133 -70 160 -85 28 -15 118 -62 200 -105 83 -43 177 -92 210 -110 98
|
||||
-53 231 -123 385 -203 80 -41 168 -87 195 -102 28 -15 109 -58 180 -95 72 -37
|
||||
162 -85 200 -105 39 -21 115 -61 170 -90 254 -133 299 -158 440 -241 83 -49
|
||||
156 -98 163 -109 15 -24 22 -68 28 -168 7 -127 14 -1367 19 -3162 2 -932 6
|
||||
-1739 9 -1792 16 -310 31 -424 68 -490 27 -49 125 -121 190 -138 88 -24 185
|
||||
-8 298 50 113 57 380 260 419 318 31 46 59 146 67 237 3 39 7 81 9 95 26 150
|
||||
26 5276 1 5405 -2 11 -7 42 -11 70 -4 27 -13 62 -20 76 -47 90 -212 181 -1740
|
||||
954 -225 114 -554 281 -730 370 -2161 1097 -2323 1175 -2550 1234 -60 15 -218
|
||||
34 -227 26z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
|
@ -0,0 +1,48 @@
|
|||
const fs = require("fs");
|
||||
const fetch = require("node-fetch");
|
||||
const path = require("path");
|
||||
const verbsPath = path.join(".", "src", "words");
|
||||
const collectionPath = path.join(verbsPath, "verb-categories");
|
||||
const verbTsFiles = fs.readdirSync(collectionPath);
|
||||
|
||||
// const allTsS = [...new Set(verbTsFiles.reduce((arr, fileName) => {
|
||||
// const TsS = require(path.join("..", collectionPath, fileName));
|
||||
// return [...arr, ...TsS];
|
||||
// }, []))];
|
||||
|
||||
fetch(process.env.LINGDOCS_DICTIONARY_URL).then(res => res.json()).then(data => {
|
||||
const entries = data.entries;
|
||||
const myWords = require(path.join("..", verbsPath, "my-words.js"));
|
||||
const bad = myWords.filter((word) => {
|
||||
const dictEntry = entries.find(e => e.ts === word.ts);
|
||||
if (!dictEntry) {
|
||||
return true;
|
||||
}
|
||||
if (!dictEntry.c) {
|
||||
return true;
|
||||
}
|
||||
if (!dictEntry.c.includes("adj.") && !dictEntry.c.includes("unisex")) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})
|
||||
console.log(bad);
|
||||
});
|
||||
|
||||
// function getFromTsS(entries) {
|
||||
// return allTsS.map(item => {
|
||||
// const entry = entries.find(x => item.ts === x.ts);
|
||||
// if (!entry) {
|
||||
// console.log("couldn't find ts", ts);
|
||||
// return undefined;
|
||||
// }
|
||||
// if (entry.c && entry.c.includes("comp.")) {
|
||||
// const complement = entries.find(x => entry.l === x.ts);
|
||||
// return {
|
||||
// entry,
|
||||
// complement,
|
||||
// };
|
||||
// }
|
||||
// return { entry, def: item.e };
|
||||
// }).filter(x => x);
|
||||
// }
|
|
@ -0,0 +1,64 @@
|
|||
const fs = require("fs");
|
||||
const fetch = require("node-fetch");
|
||||
const path = require("path");
|
||||
const verbsPath = path.join(".", "src", "words");
|
||||
const verbCollectionPath = path.join(verbsPath, "verb-categories");
|
||||
const nounAdjCollectionPath = path.join(verbsPath, "noun-adj-categories");
|
||||
const verbTsFiles = fs.readdirSync(verbCollectionPath);
|
||||
const nounAdjTsFiles = fs.readdirSync(nounAdjCollectionPath);
|
||||
|
||||
const allVerbTsS = [...new Set(verbTsFiles.reduce((arr, fileName) => {
|
||||
const TsS = require(path.join("..", verbCollectionPath, fileName));
|
||||
return [...arr, ...TsS];
|
||||
}, []))];
|
||||
|
||||
const allNounAdjTsS = [...new Set(nounAdjTsFiles.reduce((arr, fileName) => {
|
||||
const TsS = require(path.join("..", nounAdjCollectionPath, fileName));
|
||||
return [...arr, ...TsS.map(x => ({ ...x, category: path.parse(fileName).name }))];
|
||||
}, []))];
|
||||
|
||||
console.log("getting words from dictionary...");
|
||||
|
||||
fetch(process.env.LINGDOCS_DICTIONARY_URL).then(res => res.json()).then(data => {
|
||||
const entries = data.entries;
|
||||
// MAKE VERBS FILE
|
||||
const allVerbs = getVerbsFromTsS(entries);
|
||||
const content = `const verbs = ${JSON.stringify(allVerbs)};
|
||||
export default verbs;`;
|
||||
fs.writeFileSync(path.join(verbsPath, "verbs.js"), content);
|
||||
|
||||
// MAKE NOUN-ADJ FILE
|
||||
const allNounsAdjs = getNounsAdjsFromTsS(entries);
|
||||
const content1 = `const nounsAdjs = ${JSON.stringify(allNounsAdjs)};
|
||||
export default nounsAdjs;`;
|
||||
fs.writeFileSync(path.join(verbsPath, "nouns-adjs.js"), content1);
|
||||
});
|
||||
|
||||
function getVerbsFromTsS(entries) {
|
||||
return allVerbTsS.map(item => {
|
||||
const entry = entries.find(x => item.ts === x.ts);
|
||||
if (!entry) {
|
||||
console.log("couldn't find ts", ts);
|
||||
return undefined;
|
||||
}
|
||||
if (entry.c && entry.c.includes("comp.")) {
|
||||
const complement = entries.find(x => entry.l === x.ts);
|
||||
return {
|
||||
entry,
|
||||
complement,
|
||||
};
|
||||
}
|
||||
return { entry, def: item.e };
|
||||
}).filter(x => x);
|
||||
}
|
||||
|
||||
function getNounsAdjsFromTsS(entries) {
|
||||
return allNounAdjTsS.map(item => {
|
||||
const entry = entries.find(x => item.ts === x.ts);
|
||||
if (!entry) {
|
||||
console.log("couldn't find ts", ts);
|
||||
return undefined;
|
||||
}
|
||||
return { entry, def: item.e, category: item.category };
|
||||
}).filter(x => x);
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
const fs = require("fs");
|
||||
const fetch = require("node-fetch");
|
||||
const path = require("path");
|
||||
const verbsPath = path.join(".", "src", "words");
|
||||
const collectionPath = path.join(verbsPath, "verb-categories");
|
||||
const verbTsFiles = fs.readdirSync(collectionPath);
|
||||
|
||||
// const allTsS = [...new Set(verbTsFiles.reduce((arr, fileName) => {
|
||||
// const TsS = require(path.join("..", collectionPath, fileName));
|
||||
// return [...arr, ...TsS];
|
||||
// }, []))];
|
||||
|
||||
fetch(process.env.LINGDOCS_DICTIONARY_URL).then(res => res.json()).then(data => {
|
||||
const entries = data.entries;
|
||||
const filtered = entries.filter(e => (
|
||||
e.c && (e.c.includes("adj.") || e.c.includes("unisex"))
|
||||
&& !e.infap && !e.noInf &&
|
||||
["ب", "پ", "ت", "ټ", "ث", "ج", "چ", "ح", "خ", "څ", "ځ", "د", "ډ", "ذ", "ر", "ړ", "ز", "ژ", "ږ", "س", "ش", "ښ", "ص", "ض", "ط", "ظ", "غ", "ف", "ق", "ک", "ګ", "گ", "ل", "ل", "م", "ن", "ڼ"].includes(e.p.slice(-1))
|
||||
));
|
||||
const content = `module.exports = [
|
||||
${filtered.reduce((text, entry) => (
|
||||
text + `{ ts: ${entry.ts}, e: "${entry.e}" }, // ${entry.p} - ${entry.f}
|
||||
`), "")}
|
||||
];`;
|
||||
fs.writeFileSync(path.join(verbsPath, "my-words.js"), content);
|
||||
});
|
||||
|
||||
// function getFromTsS(entries) {
|
||||
// return allTsS.map(item => {
|
||||
// const entry = entries.find(x => item.ts === x.ts);
|
||||
// if (!entry) {
|
||||
// console.log("couldn't find ts", ts);
|
||||
// return undefined;
|
||||
// }
|
||||
// if (entry.c && entry.c.includes("comp.")) {
|
||||
// const complement = entries.find(x => entry.l === x.ts);
|
||||
// return {
|
||||
// entry,
|
||||
// complement,
|
||||
// };
|
||||
// }
|
||||
// return { entry, def: item.e };
|
||||
// }).filter(x => x);
|
||||
// }
|
|
@ -0,0 +1,158 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
.table-of-contents {
|
||||
padding-top: 1rem;
|
||||
position: sticky !important;
|
||||
top: 1rem;
|
||||
height: calc(100vh - 2rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.table-of-contents {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.overlay {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.side-nav-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 821px) {
|
||||
.sticky-on-big {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.main-row {
|
||||
height: calc(100vh - 62px);
|
||||
}
|
||||
.header-title {
|
||||
margin-left: 3.5rem;
|
||||
}
|
||||
.side-nav-btn {
|
||||
display: block;
|
||||
position: fixed;
|
||||
z-index: 99996;
|
||||
background: white;
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
aside {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.side-nav {
|
||||
display: block;
|
||||
min-width: 15rem;
|
||||
height: 100vh;
|
||||
position: fixed !important;
|
||||
top: 0;
|
||||
left: 0;
|
||||
/* top layer */
|
||||
z-index: 99999;
|
||||
transition: all 0.25s linear;
|
||||
}
|
||||
.side-nav-closed {
|
||||
transform: translate(-100%);
|
||||
-webkit-transform: translate(-100%);
|
||||
}
|
||||
.overlay {
|
||||
display: block;
|
||||
position: fixed;
|
||||
/* full screen */
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
/* transparent black */
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
/* middle layer, i.e. appears below the sidebar */
|
||||
opacity: 0;
|
||||
/* animate the transition */
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.overlay-showing {
|
||||
z-index: 99998;
|
||||
top: 0;
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.link-unstyled a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.link-unstyled:hover a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.link-unstyled:visited a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.side-nav-item {
|
||||
padding: 0.5rem 0.75rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.side-nav-item-selected {
|
||||
background-color: rgb(25,101,189, 0.3);
|
||||
}
|
||||
|
||||
.side-nav-item-secondary {
|
||||
font-size: smaller;
|
||||
padding-left: 1.25rem;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.side-nav-item:hover {
|
||||
background-color: #c0c0c0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.copyright a {
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
.copyright a:hover {
|
||||
color: inherit;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.table-of-contents-item {
|
||||
padding-left: 1rem;
|
||||
border-left: 1px solid grey;
|
||||
}
|
||||
|
||||
.is-current {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.clickable:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React, { useState } from "react";
|
||||
// eslint-disable-next-line
|
||||
import { BrowserRouter as Router, Route, withRouter, Switch } from "react-router-dom";
|
||||
import "./App.css";
|
||||
import Page404 from "./pages/404";
|
||||
import Chapter from "./components/Chapter";
|
||||
import { content } from "./content/index";
|
||||
import Sidebar from "./components/Sidebar";
|
||||
import Header from "./components/Header";
|
||||
import { useEffect } from "react";
|
||||
const chapters = content.reduce((chapters, item) => (
|
||||
item.content
|
||||
? [...chapters, item]
|
||||
: [...chapters, ...item.chapters]
|
||||
), []);
|
||||
|
||||
function App(props) {
|
||||
const [navOpen, setNavOpen] = useState(false);
|
||||
useEffect(() => {
|
||||
window.scroll(0, 0);
|
||||
}, [props.location.pathname]);
|
||||
return (
|
||||
<>
|
||||
<Header setNavOpen={setNavOpen} />
|
||||
<div className="container-fluid">
|
||||
<div className="main-row row">
|
||||
<Sidebar
|
||||
content={content}
|
||||
navOpen={navOpen}
|
||||
setNavOpen={setNavOpen}
|
||||
pathname={props.location.pathname}
|
||||
/>
|
||||
<Switch>
|
||||
<Route path="/" exact>
|
||||
<Chapter>{chapters[0]}</Chapter>
|
||||
</Route>
|
||||
{chapters.map((chapter) => (
|
||||
<Route key={chapter.path} path={chapter.path}>
|
||||
<Chapter>{chapter}</Chapter>
|
||||
</Route>
|
||||
))}
|
||||
<Route component={Page404} />
|
||||
</Switch>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default withRouter(App);
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import App from './App';
|
||||
|
||||
test('renders', () => {
|
||||
const { getByText } = render(<App />);
|
||||
const linkElement = getByText(/pashto grammar/i);
|
||||
expect(linkElement).toBeInTheDocument();
|
||||
});
|
|
@ -0,0 +1,61 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React, { useState } from "react";
|
||||
import leftChevron from "./chevron_left-24px.svg";
|
||||
import rightChevron from "./chevron_right-24px.svg";
|
||||
|
||||
const chevStyle = {
|
||||
height: "3.5rem",
|
||||
width: "3.5rem",
|
||||
};
|
||||
|
||||
export default function(props) {
|
||||
// console.log("pppp");
|
||||
// console.log(props.items);
|
||||
const [current, setCurrent] = useState(0);
|
||||
function forward() {
|
||||
setCurrent(
|
||||
(current + 1) % props.items.length
|
||||
);
|
||||
}
|
||||
function back() {
|
||||
setCurrent(
|
||||
current === 0 ? (props.items.length - 1) : current - 1
|
||||
);
|
||||
}
|
||||
const item = props.items[current];
|
||||
const { title, body } = props.render(item);
|
||||
if (!item) {
|
||||
return <div>EMPTY</div>;
|
||||
}
|
||||
return (
|
||||
<div className="mb-3">
|
||||
<div className="d-flex flex-row justify-content-between align-items-center">
|
||||
<img
|
||||
src={leftChevron}
|
||||
className="clickable ml-lg-3"
|
||||
style={chevStyle}
|
||||
alt={"previous"}
|
||||
onClick={back}
|
||||
/>
|
||||
<div className="h5 text-center">{title}</div>
|
||||
<img
|
||||
src={rightChevron}
|
||||
className="clickable mr-lg-3"
|
||||
style={chevStyle}
|
||||
onClick={forward}
|
||||
alt={"next"}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
{body}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import TableOfContents from "./TableOfContents";
|
||||
import Footer from "./Footer";
|
||||
|
||||
const Chapter = ({ children: chapter }) => {
|
||||
const Content = chapter.content;
|
||||
return <>
|
||||
<main className="col bg-faded py-3 d-flex flex-column">
|
||||
<div className="flex-shrink-0">
|
||||
<h1>{chapter.frontMatter.title}</h1>
|
||||
<Content />
|
||||
</div>
|
||||
<Footer chapter={chapter} />
|
||||
</main>
|
||||
<TableOfContents tableOfContents={chapter.tableOfContents} />
|
||||
</>;
|
||||
};
|
||||
|
||||
export default Chapter;
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
// eslint-disable-next-line
|
||||
import { BrowserRouter as Router, Link } from "react-router-dom";
|
||||
import leftChevron from "./chevron_left-24px.svg";
|
||||
import rightChevron from "./chevron_right-24px.svg";
|
||||
|
||||
function Footer({ chapter }) {
|
||||
function Chevron({dir, label}) {
|
||||
function Label({text}) {
|
||||
return <span className="text-muted">
|
||||
{text}
|
||||
</span>;
|
||||
}
|
||||
return (
|
||||
<div className="link-unstyled">
|
||||
<Link to={chapter[dir].path}>
|
||||
<div className="link-unstyled d-flex flex-row align-items-center">
|
||||
{dir === "next" && <Label text={label} />}
|
||||
<img
|
||||
src={dir === "prev" ? leftChevron : rightChevron} style={{
|
||||
height: "2rem",
|
||||
width: "2rem",
|
||||
}}
|
||||
alt={dir === "prev" ? "previous" : "next"}
|
||||
/>
|
||||
{dir === "prev" && <Label text={label} />}
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<footer className="footer mt-auto pb-2">
|
||||
<div className="copyright text-muted my-4 text-center">
|
||||
<small>© <a href="https://www.lingdocs.com/">lingdocs.com</a> {new Date().getFullYear()} - <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></small>
|
||||
</div>
|
||||
{chapter &&
|
||||
<div className="d-flex justify-content-between">
|
||||
{["prev", "next"].map((dir) => (
|
||||
<div key={dir}>
|
||||
{chapter[dir] && <Chevron dir={dir} label={chapter[dir].frontMatter.title} />}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
}
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
|
||||
export default function(props) {
|
||||
return (
|
||||
<samp>
|
||||
<span>Formula: </span>
|
||||
{props.children}
|
||||
</samp>
|
||||
);
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
// eslint-disable-next-line
|
||||
import { BrowserRouter as Router, Link } from "react-router-dom";
|
||||
const hamburger = <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>
|
||||
|
||||
function Header({ setNavOpen }) {
|
||||
return (
|
||||
<header className="d-flex flex-row align-items-center p-2 bg-white border-bottom shadow-sm">
|
||||
<div className="side-nav-btn">
|
||||
<button className="btn btn-sm btn-outline-secondary" onClick={() => setNavOpen(true)}>
|
||||
{hamburger}
|
||||
</button>
|
||||
</div>
|
||||
<h4 className="header-title link-unstyled mt-2"><Link to="/">Pashto Grammar</Link></h4>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export default Header;
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { HashLink } from 'react-router-hash-link';
|
||||
import { Link } from "react-router-dom";
|
||||
// import scrollWithOffset from "../../lib/scroll-with-offset.js";
|
||||
|
||||
export default function(props) {
|
||||
const { to } = props || "";
|
||||
if (to.includes("#")) {
|
||||
// If it's a hash link return the special hash link
|
||||
return <HashLink
|
||||
// scroll={scrollWithOffset}
|
||||
smooth
|
||||
to={to}
|
||||
style={props.style}
|
||||
>{props.children}</HashLink>;
|
||||
}
|
||||
// If it's a regular link return the regular router linker
|
||||
return <Link to={to} style={props.style}>{props.children}</Link>;
|
||||
};
|
|
@ -0,0 +1,75 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React, { useState } from "react";
|
||||
// eslint-disable-next-line
|
||||
import { BrowserRouter as Router, Link } from "react-router-dom";
|
||||
import classNames from "classnames";
|
||||
import SmoothCollapse from "react-smooth-collapse";
|
||||
|
||||
function Sidebar({ content, navOpen, setNavOpen, pathname }) {
|
||||
const openSection = content.find((block) => (
|
||||
block.content
|
||||
? false
|
||||
: block.chapters.find((x) => pathname === x.path)
|
||||
));
|
||||
const openSectionHeading = openSection ? openSection.heading : "";
|
||||
const [sectionOpen, setSectionOpen] = useState(openSectionHeading);
|
||||
function handleHeadingClick(h) {
|
||||
setSectionOpen(h === sectionOpen ? "" : h);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<aside className={classNames(
|
||||
"side-nav col-3 col-lg-2 p-0 bg-light",
|
||||
{ "side-nav-closed": !navOpen }
|
||||
)}>
|
||||
<nav className="sticky-on-big flex-column align-items-start">
|
||||
{content.map((item) => (
|
||||
item.content
|
||||
? (
|
||||
<Link key={item.path} to={item.path} style={{ textDecoration: "none", color: "inherit" }} onClick={() => setNavOpen(false)}>
|
||||
<div className={classNames(
|
||||
"side-nav-item",
|
||||
{ "side-nav-item-selected": pathname === item.path }
|
||||
)}>
|
||||
{item.frontMatter.title}
|
||||
</div>
|
||||
</Link>
|
||||
)
|
||||
: <div key={item.heading}>
|
||||
<div className="side-nav-item" onClick={() => handleHeadingClick(item.heading)}>
|
||||
{item.heading}
|
||||
</div>
|
||||
<SmoothCollapse expanded={sectionOpen === item.heading}>
|
||||
<>
|
||||
{item.chapters.map((chapter) => (
|
||||
<Link key={chapter.path} to={chapter.path} style={{ textDecoration: "none" }} onClick={() => setNavOpen(false)}>
|
||||
<div className={classNames(
|
||||
"side-nav-item side-nav-item-secondary",
|
||||
{ "side-nav-item-selected": pathname === chapter.path }
|
||||
)}>
|
||||
{chapter.frontMatter.title}
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</>
|
||||
</SmoothCollapse>
|
||||
</div>
|
||||
))}
|
||||
</nav>
|
||||
</aside>
|
||||
<div
|
||||
className={classNames("overlay", { "overlay-showing": navOpen })}
|
||||
onClick={() => setNavOpen(false)}
|
||||
></div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Sidebar;
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { NavHashLink } from 'react-router-hash-link';
|
||||
import Scrollspy from 'react-scrollspy';
|
||||
|
||||
function TableOfContents({ tableOfContents }) {
|
||||
return (
|
||||
<nav className="table-of-contents col-3 col-xl-4 text-muted mx-3 my-3">
|
||||
<Scrollspy items={tableOfContents.map(x => x.id)} currentClassName="is-current">
|
||||
{tableOfContents.map(item => {
|
||||
if (item.level === 2) return (
|
||||
<div key={item.title} className="table-of-contents-item">
|
||||
<div className="link-unstyled pb-2">
|
||||
<NavHashLink smooth to={`#${item.id}`}>{item.title}</NavHashLink>
|
||||
</div>
|
||||
{item.children.map(child => {
|
||||
if (child.level === 3) return (
|
||||
<div className="link-unstyled ml-2 pb-1" key={child.title}>
|
||||
<small>
|
||||
<NavHashLink smooth to={`#${child.id}`}>
|
||||
{child.title}
|
||||
</NavHashLink>
|
||||
</small>
|
||||
</div>
|
||||
);
|
||||
else return undefined;
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
})}
|
||||
</Scrollspy>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
export default TableOfContents;
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>
|
After Width: | Height: | Size: 183 B |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
|
After Width: | Height: | Size: 184 B |
|
@ -0,0 +1,103 @@
|
|||
This license applies to the content of the book found in this directory
|
||||
|
||||
Copyright 2021 lingdocs.com
|
||||
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
Creative Commons Attribution-ShareAlike 4.0 International Public License
|
||||
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||
|
||||
Section 1 – Definitions.
|
||||
|
||||
Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||
Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||
BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License.
|
||||
Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||
Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||
Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||
License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
|
||||
Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||
Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||
Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||
Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||
Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||
You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||
Section 2 – Scope.
|
||||
|
||||
License grant.
|
||||
Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||
reproduce and Share the Licensed Material, in whole or in part; and
|
||||
produce, reproduce, and Share Adapted Material.
|
||||
Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||
Term. The term of this Public License is specified in Section 6(a).
|
||||
Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||
Downstream recipients.
|
||||
Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||
Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||
No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||
No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||
Other rights.
|
||||
|
||||
Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||
Patent and trademark rights are not licensed under this Public License.
|
||||
To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||
Section 3 – License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||
|
||||
Attribution.
|
||||
|
||||
If You Share the Licensed Material (including in modified form), You must:
|
||||
|
||||
retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||
identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||
a copyright notice;
|
||||
a notice that refers to this Public License;
|
||||
a notice that refers to the disclaimer of warranties;
|
||||
a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||
indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||
indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||
You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||
If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||
ShareAlike.
|
||||
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||
|
||||
The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
|
||||
You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||
You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||
Section 4 – Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||
|
||||
for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||
if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||
You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||
To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||
The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||
Section 6 – Term and Termination.
|
||||
|
||||
This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||
Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||
|
||||
automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||
upon express reinstatement by the Licensor.
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||
For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||
Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||
Section 7 – Other Terms and Conditions.
|
||||
|
||||
The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||
Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||
Section 8 – Interpretation.
|
||||
|
||||
For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||
To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||
No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the CC0 Public Domain Dedication. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||
|
||||
Creative Commons may be contacted at creativecommons.org.
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
title: Intro
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
This is a Pashto grammar reference. It's just barely getting started. 👷♂️🏗
|
|
@ -0,0 +1,273 @@
|
|||
---
|
||||
title: Equative Forms
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
import {
|
||||
addToForm,
|
||||
defaultTextOptions,
|
||||
grammarUnits,
|
||||
VerbFormDisplay,
|
||||
ButtonSelect,
|
||||
concatPsString,
|
||||
InlinePs,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
import Formula from "../../components/Formula";
|
||||
import Link from "../../components/Link";
|
||||
export const opts = defaultTextOptions;
|
||||
|
||||
export function FormChoice({forms}) {
|
||||
const [choice, setChoice] = React.useState("pure");
|
||||
return (
|
||||
<div>
|
||||
<div className="text-center my-3">
|
||||
<ButtonSelect
|
||||
options={[
|
||||
{ label: "Equative", value: "pure" },
|
||||
{ label: "w/ Sentences", value: "sentence" },
|
||||
]}
|
||||
value={choice}
|
||||
handleChange={(p) => setChoice(p)}
|
||||
/>
|
||||
</div>
|
||||
<VerbFormDisplay
|
||||
displayForm={forms[choice].displayForm}
|
||||
english={forms[choice].english}
|
||||
textOptions={opts}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
## Present Equative
|
||||
|
||||
This is used to say something is something currently.
|
||||
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: addToForm(
|
||||
[grammarUnits.pronouns.far.plain, " ", { p: "...", f: "..." }, " "],
|
||||
grammarUnits.equativeEndings.present,
|
||||
),
|
||||
english: [
|
||||
["I am ...", "We are ..."],
|
||||
["I am ...", "We are ..."],
|
||||
["You are ...", "You are ..."],
|
||||
["You are ...", "You are ..."],
|
||||
["He/it is ...", "They are ..."],
|
||||
["She/it is ...", "They are ..."],
|
||||
],
|
||||
},
|
||||
pure: {
|
||||
displayForm: grammarUnits.equativeEndings.present,
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
## Subjunctive / Habitual Equative
|
||||
|
||||
This is used to talk about something being something, when the statement involves a wish, desire, hope, or statement of whether it should or shouldn't be.
|
||||
|
||||
It is also used to say that something is generally or repeatedly something. This is like the the [habitual be](https://en.wikipedia.org/wiki/Habitual_be) found in African American Vernacular English (AAVE), as in, "The grass *be* wet in the morning."
|
||||
|
||||
It's the same as the present equative above, except for the 3rd person.
|
||||
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: addToForm(
|
||||
[grammarUnits.pronouns.far.plain, " ", { p: "...", f: "..." }, " "],
|
||||
grammarUnits.equativeEndings.subjunctive,
|
||||
),
|
||||
english: [
|
||||
["I am ...", "We are ..."],
|
||||
["I am ...", "We are ..."],
|
||||
["You are ...", "You are ..."],
|
||||
["You are ...", "You are ..."],
|
||||
["He/she/it is ...", "They are ..."],
|
||||
["He/she/it is ...", "They are ..."],
|
||||
],
|
||||
},
|
||||
pure: {
|
||||
displayForm: grammarUnits.equativeEndings.subjunctive,
|
||||
},
|
||||
}}
|
||||
/>
|
||||
|
||||
## Future / Presumptive Equative
|
||||
|
||||
This is used to say that something will be something in the future. It's also used to guess or surmise about something being something.
|
||||
|
||||
<Formula>
|
||||
<InlinePs opts={opts} ps={grammarUnits.baParticle} /> + <Link to="#subjunctive--informative-equative">subjunctive/informative equative</Link>
|
||||
</Formula>
|
||||
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: addToForm([
|
||||
grammarUnits.pronouns.far.plain,
|
||||
" ",
|
||||
grammarUnits.baParticle,
|
||||
" ",
|
||||
{ p: "...", f: "..." },
|
||||
" ",
|
||||
],
|
||||
grammarUnits.equativeEndings.subjunctive,
|
||||
),
|
||||
english: [
|
||||
["I will be ...", "We will be ..."],
|
||||
["I will be ...", "We will be ..."],
|
||||
["You will be ...", "You will be ..."],
|
||||
["You will be ...", "You will be ..."],
|
||||
["He/she/it will be ...", "They will be ..."],
|
||||
["He/she/it will be ...", "They will be ..."],
|
||||
],
|
||||
},
|
||||
pure: {
|
||||
displayForm: addToForm([
|
||||
grammarUnits.baParticle,
|
||||
" ",
|
||||
{ p: "...", f: "..." },
|
||||
" ",
|
||||
], grammarUnits.equativeEndings.subjunctive)
|
||||
},
|
||||
}}
|
||||
/>
|
||||
|
||||
## Past Equative
|
||||
|
||||
This is used to say that something was something in the past.
|
||||
|
||||
It is usually used in the short form.
|
||||
|
||||
<Formula>
|
||||
<InlinePs opts={opts} ps={{ p: "ول", f: "wul" }} /> + <Link to="/verbs/verb-endings/#past-verb-endings">past verb endings</Link>
|
||||
</Formula>
|
||||
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: addToForm([
|
||||
grammarUnits.pronouns.far.plain, " ", { p: "...", f: "..." }, " "],
|
||||
grammarUnits.equativeEndings.past,
|
||||
),
|
||||
english: [
|
||||
["I was ...", "We were ..."],
|
||||
["I was ...", "We were ..."],
|
||||
["You were ...", "You were ..."],
|
||||
["You were ...", "You were ..."],
|
||||
["He/it was ...", "They were ..."],
|
||||
["She/it was ...", "They were ..."],
|
||||
],
|
||||
},
|
||||
pure: {
|
||||
displayForm: grammarUnits.equativeEndings.past,
|
||||
},
|
||||
}}
|
||||
/>
|
||||
|
||||
## Affirmative Equative
|
||||
|
||||
This is used to affirm or to make a strong assumption that something will be something.
|
||||
|
||||
<Formula>
|
||||
<InlinePs opts={opts} ps={grammarUnits.baParticle} /> + <Link to="#past-equative">past equative</Link>
|
||||
</Formula>
|
||||
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: addToForm([
|
||||
grammarUnits.pronouns.far.plain,
|
||||
" ",
|
||||
grammarUnits.baParticle,
|
||||
" ",
|
||||
{ p: "...", f: "..." },
|
||||
" ",
|
||||
],
|
||||
grammarUnits.equativeEndings.past,
|
||||
),
|
||||
english: [
|
||||
["I'll be ...", "We'll be ..."],
|
||||
["I'll be ...", "We'll be ..."],
|
||||
["You'll be ...", "You'll be ..."],
|
||||
["You'll be ...", "You'll be ..."],
|
||||
["He/she/it'll be ...", "They'll be ..."],
|
||||
["He/she/it'll be ...", "They'll be ..."],
|
||||
],
|
||||
},
|
||||
pure: {
|
||||
displayForm: addToForm([
|
||||
grammarUnits.baParticle,
|
||||
" ",
|
||||
{ p: "...", f: "..." },
|
||||
" ",
|
||||
], grammarUnits.equativeEndings.past)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
## Conterfactual / Past Subjunctive / Wish Equative
|
||||
|
||||
This is used to talk about something being hypothetically something, or to wish that something were something. It is also used for prayers and blessings in some dialects.
|
||||
|
||||
Because this uses the non-inflecting tail, it doesn't change at all depending on the person.
|
||||
|
||||
<Formula>
|
||||
<InlinePs opts={opts} ps={{ p: "و", f: "w" }} /> + non-inflecting tail
|
||||
</Formula>
|
||||
|
||||
export function WithTailChoice() {
|
||||
const [choice, setChoice] = React.useState("aay");
|
||||
const waay = concatPsString(
|
||||
{p: "و", f: "w"},
|
||||
choice === "aay" ? { p: "ای", f: "aay" } : { p: "ی", f: "ey" },
|
||||
);
|
||||
return (
|
||||
<div>
|
||||
<div className="text-center my-3">
|
||||
<div className="text-muted mb-1">
|
||||
<small>The spelling/pronunciation of the non-inflecting tail can vary based on dialect</small>
|
||||
</div>
|
||||
<ButtonSelect
|
||||
options={[
|
||||
{ label: <InlinePs opts={opts} ps={{ p: "ای", f: "aay" }} />, value: "aay" },
|
||||
{ label: <InlinePs opts={opts} ps={{ p: "ی", f: "ey" }} />, value: "ey" },
|
||||
]}
|
||||
value={choice}
|
||||
handleChange={(p) => setChoice(p)}
|
||||
/>
|
||||
</div>
|
||||
<FormChoice
|
||||
forms={{
|
||||
sentence: {
|
||||
displayForm: concatPsString(
|
||||
{ p: "کاشکې ... ...", f: "kaashke ... ..."}, " ",
|
||||
waay, { p: "!", f: "!" },
|
||||
),
|
||||
english: [[["If only ... was/were ...!"]]],
|
||||
},
|
||||
pure: {
|
||||
displayForm: waay,
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
<WithTailChoice />
|
||||
|
||||
|
|
@ -0,0 +1,186 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
/* eslint-disable import/no-webpack-loader-syntax */
|
||||
import * as about from "!babel-loader!mdx-loader!./about.mdx";
|
||||
|
||||
import * as equativesForms from "!babel-loader!mdx-loader!./equatives/equative-forms.mdx";
|
||||
// import * as advancedEquative from "!babel-loader!mdx-loader!./equative/equative-advanced.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";
|
||||
import * as sentenceStructure from "!babel-loader!mdx-loader!./verbs/sentence-structure.mdx";
|
||||
|
||||
import * as pronounsBasic from "!babel-loader!mdx-loader!./pronouns/pronouns-basic.mdx";
|
||||
import * as pronounsMini from "!babel-loader!mdx-loader!./pronouns/pronouns-mini.mdx";
|
||||
|
||||
import * as inflectionPatterns from "!babel-loader!mdx-loader!./inflection/inflection-patterns.mdx";
|
||||
|
||||
const contentTree = [
|
||||
{
|
||||
import: about,
|
||||
slug: "about",
|
||||
},
|
||||
{
|
||||
heading: "Equatives",
|
||||
subdirectory: "equatives",
|
||||
chapters: [
|
||||
{
|
||||
import: equativesForms,
|
||||
slug: "equative-forms",
|
||||
},
|
||||
// {
|
||||
// import: advancedEquative,
|
||||
// slug: "equative-advanced",
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
heading: "Verbs",
|
||||
subdirectory: "verbs",
|
||||
chapters: [
|
||||
{
|
||||
import: verbEndings,
|
||||
slug: "verb-endings",
|
||||
},
|
||||
{
|
||||
import: rootsAndStems,
|
||||
slug: "roots-and-stems",
|
||||
},
|
||||
{
|
||||
import: sentenceStructure,
|
||||
slug: "sentence-structure",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
heading: "Pronouns",
|
||||
subdirectory: "pronouns",
|
||||
chapters: [
|
||||
{
|
||||
import: pronounsBasic,
|
||||
slug: "pronouns-basic",
|
||||
},
|
||||
{
|
||||
import: pronounsMini,
|
||||
slug: "pronouns-mini",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
heading: "Inflection",
|
||||
subdirectory: "inflection",
|
||||
chapters: [
|
||||
{
|
||||
import: inflectionPatterns,
|
||||
slug: "inflection-patterns",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const content = contentTree.map((item) => {
|
||||
function prepareChapter(chp, subdir) {
|
||||
return {
|
||||
path: subdir ? `/${subdir}/${chp.slug}/` : `/${chp.slug}/`,
|
||||
slug: chp.slug,
|
||||
content: chp.import.default,
|
||||
frontMatter: chp.import.frontMatter,
|
||||
tableOfContents: chp.import.tableOfContents(),
|
||||
};
|
||||
}
|
||||
return (item.import)
|
||||
? prepareChapter(item)
|
||||
: {
|
||||
...item,
|
||||
chapters: item.chapters.map((c) => {
|
||||
return prepareChapter(c, item.subdirectory);
|
||||
}),
|
||||
};
|
||||
}).map((item, i, items) => {
|
||||
// make the next and previous page information for each chapter
|
||||
function withNextPrev(current, index, arr) {
|
||||
function getInfo(x) {
|
||||
return x.content
|
||||
? { frontMatter: x.frontMatter, path: x.path }
|
||||
: { frontMatter: x.chapters[0].frontMatter, path: x.chapters[0].path }; // TODO: KILL THIS?
|
||||
}
|
||||
function getNextOutsideItem() {
|
||||
return items[i+1].content
|
||||
// if it's a single chapter section, get that chapter
|
||||
? items[i+1]
|
||||
// if it's a section with multiple chapters, get the first chapter
|
||||
: items[i+1].chapters[0];
|
||||
}
|
||||
function getPrevOutsideItem() {
|
||||
return items[i-1].content
|
||||
// if it's a single chapter section, get that chapter
|
||||
? items[i-1]
|
||||
// if it's a section with multiple chapters, get the last chapter
|
||||
: items[i-1].chapters[items[i-1].chapters.length - 1];
|
||||
}
|
||||
const next = index < arr.length - 1
|
||||
// if there's another chapter in this section, that's the next one
|
||||
? arr[index+1]
|
||||
// no? maybe there's another chapter or section in front of us
|
||||
: (i < items.length - 1)
|
||||
? getNextOutsideItem()
|
||||
: false;
|
||||
const prev = index !== 0
|
||||
// if there's another chapter in this section, that's the previous one
|
||||
? arr[index-1]
|
||||
// no? maybe we there's a chapter or section behind us
|
||||
: (i !== 0)
|
||||
? getPrevOutsideItem()
|
||||
: false;
|
||||
return {
|
||||
...current,
|
||||
...prev ? {
|
||||
prev: getInfo(prev),
|
||||
} : {},
|
||||
...next ? {
|
||||
next: getInfo(next),
|
||||
} : {},
|
||||
};
|
||||
}
|
||||
if (item.content) {
|
||||
return withNextPrev(item, i, items);
|
||||
}
|
||||
return {
|
||||
...item,
|
||||
chapters: item.chapters.map((chapter, j, chapters) => (
|
||||
withNextPrev(chapter, j, chapters)
|
||||
)),
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// // Now that the paths are made, go through and make the next and previous page information for each chapter
|
||||
// // STEP #2
|
||||
// content.sections.forEach((section, i) => {
|
||||
// section.chapters.forEach((chapter, j) => {
|
||||
// // See if there's a next chapter
|
||||
// let nextChapter = j === section.chapters.length - 1 ? null : section.chapters[j + 1];
|
||||
// if (!nextChapter) {
|
||||
// // No? maybe there's something a section ahead (if that exists)
|
||||
// nextChapter = i === content.sections.length - 1 ? null : content.sections[i + 1].chapters[0];
|
||||
// }
|
||||
// if (nextChapter) {
|
||||
// chapter.next = { frontMatter: nextChapter, path: nextChapter.path };
|
||||
// }
|
||||
// // See if there's a previous chapter
|
||||
// let prevChapter = j === 0 ? null : section.chapters[j - 1];
|
||||
// if (!prevChapter) {
|
||||
// // No? maybe there's something a section behind (if that exists)
|
||||
// prevChapter = i === 0 ? null : content.sections[i - 1].chapters[content.sections[i - 1].chapters.length - 1];
|
||||
// }
|
||||
// if (prevChapter) {
|
||||
// chapter.previous = { frontMatter: prevChapter, path: prevChapter.path };
|
||||
// }
|
||||
// });
|
||||
// });
|
|
@ -0,0 +1,88 @@
|
|||
---
|
||||
title: Inflection Patterns
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import {
|
||||
defaultTextOptions,
|
||||
Examples,
|
||||
InlinePs,
|
||||
grammarUnits,
|
||||
removeFVariants,
|
||||
InflectionsTable,
|
||||
inflectWord,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
import shuffle from "../../lib/shuffle-array";
|
||||
import Carousel from "../../components/Carousel";
|
||||
import words from "../../words/nouns-adjs";
|
||||
import Link from "../../components/Link";
|
||||
|
||||
export const opts = defaultTextOptions;
|
||||
|
||||
export function InfoCarousel({ items }) {
|
||||
return (
|
||||
<div className="mt-3">
|
||||
<Carousel items={items} render={(item) => {
|
||||
const inf = inflectWord(item.entry);
|
||||
if (!inf) {
|
||||
return (
|
||||
<div>Oops! No inflections for <InlinePs opts={opts} ps={item.entry} /></div>
|
||||
);
|
||||
}
|
||||
return {
|
||||
title: <InlinePs opts={opts} ps={{
|
||||
...removeFVariants(item.entry),
|
||||
e: item.def,
|
||||
}} />,
|
||||
body: <InflectionsTable
|
||||
inf={inf}
|
||||
textOptions={opts}
|
||||
/>,
|
||||
};
|
||||
}}/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
In Pashto nouns and adjectives inflect in the same way. Although the varieties in inflections may seem overwhelming at first, there only **5 patterns for how words inflect** (plus a few other patterns with feminine only words - will be added later), and it's very predictable.
|
||||
|
||||
Look over the 5 different types of words below, and try to find the pattern for how they inflect.
|
||||
|
||||
## Words ending in a consonant
|
||||
|
||||
<InfoCarousel items={shuffle(words.filter(w => w.category === "consonant" ))} />
|
||||
|
||||
## Words ending in an unstressed <InlinePs opts={opts} ps={{ p: "ی", f: "ey" }} />
|
||||
|
||||
<InfoCarousel items={shuffle(words.filter(w => w.category === "ey-unstressed" ))} />
|
||||
|
||||
## Words ending in a stressed <InlinePs opts={opts} ps={{ p: "ی", f: "éy" }} />
|
||||
|
||||
<InfoCarousel items={shuffle(words.filter(w => w.category === "ey-stressed" ))} />
|
||||
|
||||
## Words with the "Pashtun" pattern
|
||||
|
||||
export const aanuWords = words.filter(w => w.category === "aanu" )
|
||||
|
||||
<InfoCarousel items={[
|
||||
aanuWords.find(w => w.entry.p === "پښتون"),
|
||||
...shuffle(aanuWords.filter(w => w.entry.p !== "پښتون"))
|
||||
]} />
|
||||
|
||||
Note: Nouns in this pattern will often only use the first inflection for the plural. Adjectives will use the 1st inflection for all 3 reasons.
|
||||
|
||||
## Shorter irregular words
|
||||
|
||||
<InfoCarousel items={shuffle(words.filter(w => w.category === "short-irreg" ))} />
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
---
|
||||
title: Pronouns
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import {
|
||||
defaultTextOptions,
|
||||
grammarUnits,
|
||||
VerbTable,
|
||||
ButtonSelect,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
|
||||
export function PronounInflectionChoice({ pronouns, far }) {
|
||||
const [choice, setChoice] = React.useState("plain");
|
||||
const english = {
|
||||
plain: [
|
||||
["I", "we"],
|
||||
["I", "we"],
|
||||
["you", "you"],
|
||||
["you", "you"],
|
||||
[far ? "he/she/it" : "he/it", "they"],
|
||||
["she/it", "they"],
|
||||
],
|
||||
inflected: [
|
||||
["me", "us"],
|
||||
["me", "us"],
|
||||
["you", "you"],
|
||||
["you", "you"],
|
||||
["him/it", "them"],
|
||||
["her/it", "them"],
|
||||
],
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
<div className="text-center my-3">
|
||||
<ButtonSelect
|
||||
options={[
|
||||
{ label: "Plain", value: "plain" },
|
||||
{ label: "Inflected", value: "inflected" },
|
||||
]}
|
||||
value={choice}
|
||||
handleChange={(p) => setChoice(p)}
|
||||
/>
|
||||
</div>
|
||||
<VerbTable
|
||||
block={pronouns[choice]}
|
||||
textOptions={defaultTextOptions}
|
||||
english={english[choice]}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
## Far Pronouns
|
||||
|
||||
These pronouns are used to reference people or things that are far.
|
||||
|
||||
<PronounInflectionChoice pronouns={grammarUnits.pronouns.far} far />
|
||||
|
||||
## Near Pronouns
|
||||
|
||||
These pronouns are used to reference people or things that are close (either physically close or close in conversation).
|
||||
|
||||
Notice that only the third person pronouns are different from the far pronouns.
|
||||
|
||||
<PronounInflectionChoice pronouns={grammarUnits.pronouns.near} />
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
title: Mini Pronouns
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import {
|
||||
defaultTextOptions,
|
||||
grammarUnits,
|
||||
VerbTable,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
|
||||
These are **enclitic prounouns** that hang on to the back of words. They can't be used at the beginning of a sentence.
|
||||
|
||||
The can only be used as:
|
||||
|
||||
1. The object of a non-past tense transitive verb
|
||||
2. The subject/agent of a past tense transitive verb
|
||||
3. A possesive pronoun
|
||||
|
||||
<VerbTable
|
||||
block={grammarUnits.pronouns.mini}
|
||||
textOptions={defaultTextOptions}
|
||||
english={[
|
||||
["I", "we"],
|
||||
["I", "we"],
|
||||
["you", "you"],
|
||||
["you", "you"],
|
||||
["him/her/it", "they"],
|
||||
["him/her/it", "they"],
|
||||
]}
|
||||
/>
|
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
sodipodi:docname="bucket.svg"
|
||||
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
|
||||
id="svg8"
|
||||
version="1.1"
|
||||
viewBox="0 0 59.329563 11.371462"
|
||||
height="11.371462mm"
|
||||
width="59.329563mm">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:window-y="190"
|
||||
inkscape:window-x="2196"
|
||||
inkscape:window-height="900"
|
||||
inkscape:window-width="1515"
|
||||
fit-margin-bottom="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-top="0"
|
||||
inkscape:snap-global="false"
|
||||
showgrid="false"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:cy="228.154"
|
||||
inkscape:cx="149.76989"
|
||||
inkscape:zoom="1.4"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
borderopacity="1.0"
|
||||
bordercolor="#666666"
|
||||
pagecolor="#ffffff"
|
||||
id="base" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-72.31504,-70.88226)"
|
||||
id="layer1"
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="Layer 1">
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
id="path833"
|
||||
d="m 72.949404,71.24851 5.930953,10.272712 H 125.4881 l 5.51432,-10.050045"
|
||||
style="fill:none;stroke:#000000;stroke-width:1.465;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.0 KiB |
|
@ -0,0 +1,6 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-crown" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M12 6l4 6l5 -4l-2 10h-14l-2 -10l5 4z" />
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 340 B |
|
@ -0,0 +1,191 @@
|
|||
---
|
||||
title: Roots and Stems
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import {
|
||||
defaultTextOptions,
|
||||
Examples,
|
||||
InlinePs,
|
||||
grammarUnits,
|
||||
RootsAndStems,
|
||||
getVerbInfo,
|
||||
removeFVariants,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
import shuffle from "../../lib/shuffle-array";
|
||||
import Carousel from "../../components/Carousel";
|
||||
import verbs from "../../words/verbs";
|
||||
import Link from "../../components/Link";
|
||||
|
||||
export const opts = defaultTextOptions;
|
||||
|
||||
export function InfoCarousel({ items }) {
|
||||
return (
|
||||
<Carousel items={shuffle(items)} render={(item) => {
|
||||
let inf = getVerbInfo(item.entry);
|
||||
const info = (inf.transitive)
|
||||
? inf.transitive
|
||||
: inf.stative
|
||||
? inf.stative
|
||||
: inf;
|
||||
return {
|
||||
title: <InlinePs opts={opts} ps={{
|
||||
...removeFVariants(item.entry),
|
||||
e: item.def,
|
||||
}} />,
|
||||
body: <RootsAndStems
|
||||
info={info}
|
||||
textOptions={opts}
|
||||
/>,
|
||||
};
|
||||
}}/>
|
||||
);
|
||||
}
|
||||
|
||||
All verbs have **a set of two roots and two stems**.
|
||||
|
||||
These are divided between two aspects:
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><i class="fas fa-camera" /> Imperfective</th>
|
||||
<th scope="col"><i class="fas fa-video" /> Perfective</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>An ongoing or repeated event - think of a video</td>
|
||||
<td>A single, whole event - think of a photo</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Regular Verbs
|
||||
|
||||
With regular verbs, knowing all the roots and stems is simple:
|
||||
|
||||
- The stems are just the short version of the roots
|
||||
- The perfective root/stem is made by:
|
||||
1. Adding a <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix
|
||||
2. shifting the accent up to the front
|
||||
|
||||
Flip through all these regular verbs and notice the pattern of how they're all built. Notice how the <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> behaves differently when it's added on to a word starting with a vowel.
|
||||
|
||||
export const regularVerbs = verbs.filter((verb) => (
|
||||
!verb.entry.psp && !verb.entry.ssp && !verb.entry.prp && !verb.entry.pprtp && !verb.entry.noOo && !verb.entry.sepOo
|
||||
));
|
||||
|
||||
export const regularTrans = regularVerbs.filter((verb) => verb.entry.c && verb.entry.c.includes("v. trans."));
|
||||
|
||||
<InfoCarousel items={regularTrans} />
|
||||
|
||||
It's important to remember that **in the perfective <i class="fas fa-camera" /> forms the accent is always on the first syllable**. With Pashto verbs, the accent is extremely important to the meaning of the verb.
|
||||
|
||||
## Regular Intransitive Verbs
|
||||
|
||||
Regular intransitive verb work the same except that:
|
||||
|
||||
- the stems change the <InlinePs opts={opts} ps={{ p: "ـېد", f: "-ed" }} /> in the roots to a <InlinePs opts={opts} ps={{ p: "ـېږ", f: "-eG" }} />
|
||||
- Some of these verbs can also leave the <InlinePs opts={opts} ps={{ p: "ـېږ", f: "-eG" }} /> out completely for a short version
|
||||
|
||||
export const regularIntrans = regularVerbs.filter((verb) => verb.entry.c && verb.entry.c.includes("v. intrans."));
|
||||
|
||||
<InfoCarousel items={regularIntrans} />
|
||||
|
||||
## Verbs with irregular present forms
|
||||
|
||||
There are many verbs that use an irregular present form. With these verbs the stems are totally different from the roots.
|
||||
|
||||
export const irregularPresentFormVerbs = verbs.filter((verb) => (
|
||||
verb.entry.psp && !verb.entry.ssp && !verb.entry.prp && !verb.entry.pprtp && !verb.entry.noOo && !verb.entry.sepO
|
||||
));
|
||||
|
||||
<InfoCarousel items={irregularPresentFormVerbs} />
|
||||
|
||||
## Seperable Verbs
|
||||
|
||||
Some verbs don't take an <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix because they have little particles in the front like <InlinePs opts={opts} ps={{ p: "کې", f: "ke" }} />, <InlinePs opts={opts} ps={{ p: "پرې", f: "pre" }} />, <InlinePs opts={opts} ps={{ p: "بو", f: "bo" }} />, or <InlinePs opts={opts} ps={{ p: "څم", f: "tsam" }} />. These little particles split away from the verb in the perfective aspect just like the <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> would.
|
||||
|
||||
Even though we can't add a <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix, we still have to shift the accent to the front of the root/stem in the perfective aspect.
|
||||
|
||||
1. <s>Add a <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix</s>
|
||||
2. shift the accent up to the front
|
||||
|
||||
Notice how the only difference between the imperfective and perfective aspects is where the emphasis falls. The accent totally changes the meaning of the verb form! 🤯
|
||||
|
||||
export const separableVerbs = verbs.filter((verb) => (
|
||||
verb.entry.separationAtP && [
|
||||
"پرې",
|
||||
"کې",
|
||||
"بو",
|
||||
"څم",
|
||||
"را",
|
||||
].some(x => verb.entry.p.startsWith(x)) &&
|
||||
!verb.entry.ssp
|
||||
));
|
||||
|
||||
<InfoCarousel items={separableVerbs} />
|
||||
|
||||
## Totally Irregular Verbs
|
||||
|
||||
There are a few more verbs which are even more irregular, and these just have to be memorized. Here are some of them.
|
||||
|
||||
export const irregularVerbs = verbs.filter((verb) => {
|
||||
let score = 0;
|
||||
if (verb.entry.psp) score = score + 1;
|
||||
if (verb.entry.ssp) score = score + 1;
|
||||
if (verb.entry.prp) score = score + 1;
|
||||
if (verb.entry.pprtp) score = score + 1;
|
||||
return score > 1 && !verb.entry.l;
|
||||
});
|
||||
|
||||
<InfoCarousel items={irregularVerbs} />
|
||||
|
||||
## About the split in the perfective forms
|
||||
|
||||
Most of the perfective roots and stems have a spot where the verb can be broken apart. You can shove the following particles in this opening:
|
||||
|
||||
- <InlinePs opts={opts} ps={{ p: "نه", f: "nu", e: "negative marker" }} />
|
||||
- <InlinePs opts={opts} ps={grammarUnits.baParticle} />
|
||||
- <InlinePs opts={opts} ps={{ p: "هم", f: "hum" }} />
|
||||
- <Link to="/pronouns/pronouns-mini/">mini-pronouns</Link>
|
||||
|
||||
### About inserting <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} />
|
||||
|
||||
If the verb takes a <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix and you want to use a <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} /> to make it negative, you always have to insert the <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} /> into the split in the perfective form.
|
||||
|
||||
For example:
|
||||
|
||||
<Examples opts={opts}>{[
|
||||
{ p: "زه ورسره ونه غږېدم", f: "zu wăr-sara oo-nú-ghuGedum", e: "I didn't talk with him" },
|
||||
]}</Examples>
|
||||
|
||||
<Examples opts={opts}>{[
|
||||
{ p: "زه ورسره نه وغږېدم ❌", f: "zu wăr-sara nú ooghuGedum ❌", e: "I didn't talk with him" },
|
||||
]}</Examples>
|
||||
|
||||
But if the verb is a one of the <Link to="/verbs/roots-and-stems/#seperable-verbs">seperable verbs</Link> that doesn't take a <InlinePs opts={opts} ps={grammarUnits.ooPrefix} /> prefix, then the <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} /> can be inserted *inside or outside of the split*.
|
||||
|
||||
<Examples opts={opts}>{[
|
||||
{ p: "زه ورسره کې نه ناستم", f: "zu wăr-sara ke-nú-naastum", e: "I didn't sit with him" },
|
||||
]}</Examples>
|
||||
|
||||
<Examples opts={opts}>{[
|
||||
{ p: "زه ورسره نه کېناستم", f: "zu wăr-sara nú kenaastum", e: "I didn't sit with him" },
|
||||
]}</Examples>
|
||||
|
||||
#### <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} /> always takes over the accent
|
||||
|
||||
Whenever a <InlinePs opts={opts} ps={{ p: "نه", f: "nu" }} /> is inserted in a split or in front of a verb, it takes over the accent and receives the emphasis for a verb. It's like a mean, negative bully.
|
|
@ -0,0 +1,120 @@
|
|||
---
|
||||
title: Sentence Structure
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import bucket from "./bucket.svg";
|
||||
import crown from "./crown.svg";
|
||||
import {
|
||||
defaultTextOptions,
|
||||
Examples,
|
||||
InlinePs,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
|
||||
export const opts = defaultTextOptions;
|
||||
|
||||
export const SentenceStructure = (props) => (
|
||||
<div className="my-4 mx-auto" style={{ width: "100%", maxWidth: "45rem" }}>
|
||||
<div className={`d-flex flex-row justify-content-${props.object ? "between" : "center"} align-items-end`}>
|
||||
<div className={`text-center mr-lg-4 mr-${props.object ? "1" : "3"}`} style={{ flexGrow: 1, width: "35%", maxWidth: "35%" }}>
|
||||
{props.subject}
|
||||
<div className="px-1">
|
||||
<img src={bucket} style={{ width: "100%" }} />
|
||||
</div>
|
||||
<p className="h4">Subject</p>
|
||||
</div>
|
||||
{props.object &&
|
||||
<div className="text-center mr-lg-4 mr-2" style={{ flexGrow: 1, width: "35%", maxWidth: "35%" }}>
|
||||
{props.object}
|
||||
<div className="px-2">
|
||||
<img src={bucket} style={{ width: "100%" }} />
|
||||
</div>
|
||||
<p className="h4">Object</p>
|
||||
</div>
|
||||
}
|
||||
<div className="text-center align-self-center" style={{ maxWidth: "30%" }}>
|
||||
<div className="p-2" style={{ border: "0.25rem solid black" }}>
|
||||
<p className="h4">Verb</p>
|
||||
<div className="text-muted">{props.verb}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Pashto is a [Subject-object-verb (SOV) language](https://en.wikipedia.org/wiki/Subject%E2%80%93object%E2%80%93verb), meaning that the subject, object, and verb *usually* go in that order. However, this order can often be flipped around depending on the emphasis, the types of pronouns used, etc.
|
||||
|
||||
One thing that never changes though, is the hard and fast rules about what goes into these subject, object, and verb slots, and how they relate to each other.
|
||||
|
||||
## With intransitive verbs
|
||||
|
||||
With intransitive verbs the sentence structure is simple.
|
||||
|
||||
<SentenceStructure
|
||||
subject={[
|
||||
<img src={crown} style={{ width: "4rem" }} />,
|
||||
<div className="h5">plain</div>,
|
||||
]}
|
||||
verb={<span>agrees w/ <strong>subject</strong></span>}
|
||||
/>
|
||||
|
||||
## With transitive verbs
|
||||
|
||||
Transitive verbs are where things get more tricky.
|
||||
|
||||
In the present/future tenses, the only real "gotcha" is the fact that the object *only inflects with 1st/2nd person pronouns*. For example, you say <InlinePs opts={opts} ps={{ p: "زه تا وینم", f: "zu taa weenum", e: "I see you" }} />, but not ❌ <InlinePs opts={opts} ps={{ p: "زه هغې وینم", f: "zu haghé weenum", e: "I see her" }} />. Instead, it's ✔ <InlinePs opts={opts} ps={{ p: "زه هغه وینم", f: "zu haghá weenum", e: "I see her" }} />.
|
||||
|
||||
### Present/Future Tenses
|
||||
|
||||
<SentenceStructure
|
||||
subject={[
|
||||
<img src={crown} style={{ width: "4rem" }} />,
|
||||
<div className="h5">plain</div>,
|
||||
]}
|
||||
object={[
|
||||
<div className="h5 mb-0">plain</div>,
|
||||
<div className="text-muted" style={{ fontSize: "smaller"}}>but inflected 1st/2nd pronoun, or</div>,
|
||||
<div className="h5">mini-pronoun</div>,
|
||||
]}
|
||||
verb={<span>agrees w/ <strong>subject</strong></span>}
|
||||
/>
|
||||
|
||||
### Past Tense
|
||||
|
||||
But notice how the sentence structure becomes totally different with the past tense. This takes *a lot* of getting used to for learners.
|
||||
|
||||
<SentenceStructure
|
||||
subject={[
|
||||
<div className="h5 mb-0">inflected</div>,
|
||||
<div className="text-muted" style={{ fontSize: "smaller"}}>or</div>,
|
||||
<div className="h5">mini-pronoun</div>,
|
||||
]}
|
||||
object={[
|
||||
<img src={crown} style={{ width: "4rem" }} />,
|
||||
<div className="h5">plain</div>,
|
||||
]}
|
||||
verb={<span>agrees w/ <strong>object</strong></span>}
|
||||
/>
|
||||
|
||||
## With grammatically transitive verbs
|
||||
|
||||
There are some verbs like <InlinePs ps={{ p: "ژړل", f: "jzaRul", e: "to cry" }} opts={opts} /> or <InlinePs ps={{ p: "خندل", f: "khandul", e: "to laugh" }} opts={opts} /> which would seem to be intransitive, but they are actually used as if they were transitive verbs. Since there is no spoken object, the verb is used *as if there were an imaginary 3rd person masculine plural object*.
|
||||
|
||||
For example:
|
||||
|
||||
<Examples opts={opts}>{[
|
||||
{ p: "ما وژړل.", f: "maa óojzaRul.", e: "I cried." },
|
||||
{ p: "ټولو وخندل.", f: "Tolo óokhandul.", e: "They all laughed." },
|
||||
]}</Examples>
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
title: Verb Endings
|
||||
---
|
||||
|
||||
<!--
|
||||
|
||||
Copyright (c) 2021 lingdocs.com
|
||||
|
||||
The content of the chapters/book is licensed by a
|
||||
Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0)
|
||||
https://creativecommons.org/licenses/by-sa/4.0/
|
||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
-->
|
||||
|
||||
|
||||
import {
|
||||
addToForm,
|
||||
defaultTextOptions,
|
||||
grammarUnits,
|
||||
VerbFormDisplay,
|
||||
} from "@lingdocs/pashto-inflector";
|
||||
|
||||
export function addTail(form) {
|
||||
return addToForm([{ p: "ـ", f: "-" }], form, true);
|
||||
}
|
||||
|
||||
## Present Verb Endings
|
||||
|
||||
These endings are added on to the ends of present, subjunctive, and future verbs.
|
||||
|
||||
<VerbFormDisplay
|
||||
displayForm={addTail(grammarUnits.presentEndings)}
|
||||
textOptions={defaultTextOptions}
|
||||
/>
|
||||
|
||||
## Imperative Verb Endings
|
||||
|
||||
These endings are added on to the ends of imperative verbs.
|
||||
|
||||
<VerbFormDisplay
|
||||
displayForm={addTail(grammarUnits.imperativeEndings)}
|
||||
textOptions={defaultTextOptions}
|
||||
/>
|
||||
|
||||
## Past Verb Endings
|
||||
|
||||
These endings are added on to the ends of simple and continuous past verbs.
|
||||
|
||||
<VerbFormDisplay
|
||||
displayForm={addTail(grammarUnits.pastEndings)}
|
||||
textOptions={defaultTextOptions}
|
||||
/>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './App';
|
||||
import { BrowserRouter as Router } from "react-router-dom";
|
||||
import * as serviceWorker from './serviceWorker';
|
||||
import "bootstrap/dist/css/bootstrap.min.css";
|
||||
import "@fortawesome/fontawesome-free/css/all.css";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Router>
|
||||
<App />
|
||||
</Router>
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
serviceWorker.unregister();
|
||||
// serviceWorker.register({
|
||||
// onUpdate: registration => {
|
||||
// const ready = window.confirm("New version available! Update?");
|
||||
// if (registration && registration.waiting) {
|
||||
// registration.waiting.postMessage({ type: 'SKIP_WAITING' });
|
||||
// }
|
||||
// if (ready) {
|
||||
// window.location.reload();
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
// https://stackoverflow.com/a/2450976
|
||||
|
||||
function shuffleArray(array) {
|
||||
// for (let i = array.length - 1; i > 0; i--) {
|
||||
// const j = Math.floor(Math.random() * (i + 1));
|
||||
// [array[i], array[j]] = [array[j], array[i]];
|
||||
// }
|
||||
let currentIndex = array.length, temporaryValue, randomIndex;
|
||||
|
||||
// While there remain elements to shuffle...
|
||||
while (0 !== currentIndex) {
|
||||
|
||||
// Pick a remaining element...
|
||||
randomIndex = Math.floor(Math.random() * currentIndex);
|
||||
currentIndex -= 1;
|
||||
|
||||
// And swap it with the current element.
|
||||
temporaryValue = array[currentIndex];
|
||||
array[currentIndex] = array[randomIndex];
|
||||
array[randomIndex] = temporaryValue;
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
export default shuffleArray;
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
|
||||
export default function() {
|
||||
return <main className="col bg-faded py-3">
|
||||
<h1>404 PAGE NOT FOUND</h1>
|
||||
</main>;
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
// This optional code is used to register a service worker.
|
||||
// register() is not called by default.
|
||||
|
||||
// This lets the app load faster on subsequent visits in production, and gives
|
||||
// it offline capabilities. However, it also means that developers (and users)
|
||||
// will only see deployed updates on subsequent visits to a page, after all the
|
||||
// existing tabs open on the page have been closed, since previously cached
|
||||
// resources are updated in the background.
|
||||
|
||||
// To learn more about the benefits of this model and instructions on how to
|
||||
// opt-in, read https://bit.ly/CRA-PWA
|
||||
|
||||
const isLocalhost = Boolean(
|
||||
window.location.hostname === 'localhost' ||
|
||||
// [::1] is the IPv6 localhost address.
|
||||
window.location.hostname === '[::1]' ||
|
||||
// 127.0.0.0/8 are considered localhost for IPv4.
|
||||
window.location.hostname.match(
|
||||
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
|
||||
)
|
||||
);
|
||||
|
||||
export function register(config) {
|
||||
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
|
||||
// The URL constructor is available in all browsers that support SW.
|
||||
const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
|
||||
if (publicUrl.origin !== window.location.origin) {
|
||||
// Our service worker won't work if PUBLIC_URL is on a different origin
|
||||
// from what our page is served on. This might happen if a CDN is used to
|
||||
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
|
||||
return;
|
||||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
|
||||
|
||||
if (isLocalhost) {
|
||||
// This is running on localhost. Let's check if a service worker still exists or not.
|
||||
checkValidServiceWorker(swUrl, config);
|
||||
|
||||
// Add some additional logging to localhost, pointing developers to the
|
||||
// service worker/PWA documentation.
|
||||
navigator.serviceWorker.ready.then(() => {
|
||||
console.log(
|
||||
'This web app is being served cache-first by a service ' +
|
||||
'worker. To learn more, visit https://bit.ly/CRA-PWA'
|
||||
);
|
||||
});
|
||||
} else {
|
||||
// Is not localhost. Just register service worker
|
||||
registerValidSW(swUrl, config);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function registerValidSW(swUrl, config) {
|
||||
navigator.serviceWorker
|
||||
.register(swUrl)
|
||||
.then(registration => {
|
||||
registration.onupdatefound = () => {
|
||||
const installingWorker = registration.installing;
|
||||
if (installingWorker == null) {
|
||||
return;
|
||||
}
|
||||
installingWorker.onstatechange = () => {
|
||||
if (installingWorker.state === 'installed') {
|
||||
if (navigator.serviceWorker.controller) {
|
||||
// At this point, the updated precached content has been fetched,
|
||||
// but the previous service worker will still serve the older
|
||||
// content until all client tabs are closed.
|
||||
console.log(
|
||||
'New content is available and will be used when all ' +
|
||||
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
|
||||
);
|
||||
|
||||
// Execute callback
|
||||
if (config && config.onUpdate) {
|
||||
config.onUpdate(registration);
|
||||
}
|
||||
} else {
|
||||
// At this point, everything has been precached.
|
||||
// It's the perfect time to display a
|
||||
// "Content is cached for offline use." message.
|
||||
console.log('Content is cached for offline use.');
|
||||
|
||||
// Execute callback
|
||||
if (config && config.onSuccess) {
|
||||
config.onSuccess(registration);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error during service worker registration:', error);
|
||||
});
|
||||
}
|
||||
|
||||
function checkValidServiceWorker(swUrl, config) {
|
||||
// Check if the service worker can be found. If it can't reload the page.
|
||||
fetch(swUrl, {
|
||||
headers: { 'Service-Worker': 'script' },
|
||||
})
|
||||
.then(response => {
|
||||
// Ensure service worker exists, and that we really are getting a JS file.
|
||||
const contentType = response.headers.get('content-type');
|
||||
if (
|
||||
response.status === 404 ||
|
||||
(contentType != null && contentType.indexOf('javascript') === -1)
|
||||
) {
|
||||
// No service worker found. Probably a different app. Reload the page.
|
||||
navigator.serviceWorker.ready.then(registration => {
|
||||
registration.unregister().then(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
// Service worker found. Proceed as normal.
|
||||
registerValidSW(swUrl, config);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
console.log(
|
||||
'No internet connection found. App is running in offline mode.'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
export function unregister() {
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.ready
|
||||
.then(registration => {
|
||||
registration.unregister();
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error.message);
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom/extend-expect';
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527815197, e: "Pashtun" }, // پښتون
|
||||
{ ts: 1527813148, e: "lying" }, // پروت
|
||||
{ ts: 1574867531681, e: "mature, ripe, cooked" }, // پوخ
|
||||
{ ts: 1576952412644, e: "soft" }, // پوست
|
||||
{ ts: 1527815366, e: "bitter" }, // تریخ
|
||||
{ ts: 1527818789, e: "sour" }, // تریو
|
||||
// { ts: 1527815333, e: "'tandoor'" }, // تنور
|
||||
{ ts: 1527817664, e: "hot" }, // تود
|
||||
// { ts: 1577408901204, e: "knee" }, // ځنګون
|
||||
{ ts: 1527816071, e: "spread" }, // خپور
|
||||
{ ts: 1574865652928, e: "sweet" }, // خوږ
|
||||
{ ts: 1527813499, e: "heavy" }, // دروند
|
||||
{ ts: 1527813943, e: "returned, come back" }, // راستون
|
||||
{ ts: 1576596860977, e: "clear, bright" }, // روڼ
|
||||
{ ts: 1527811971, e: "blind" }, // ړوند
|
||||
{ ts: 1527815451, e: "old" }, // زوړ
|
||||
// { ts: 1527815845, e: "life" }, // ژوندون
|
||||
{ ts: 1527815300, e: "rider, mounted" }, // سپور
|
||||
{ ts: 1527819505, e: "being (in a place after returning, coming back etc.)" }, // ستون
|
||||
{ ts: 1527813293, e: "red; hot" }, // سور
|
||||
{ ts: 1600080053835, e: "riding, mounted" }, // سور
|
||||
{ ts: 1527813068, e: "cold" }, // سوړ
|
||||
// { ts: 1575924767041, e: "shepherd" }, // شپون
|
||||
// { ts: 1610448014063, e: "large flat basket" }, // شکور
|
||||
{ ts: 1527813172, e: "bent" }, // کوږ
|
||||
{ ts: 1527811973, e: "deaf" }, // کوڼ
|
||||
// { ts: 1527823497, e: "intestines" }, // لړمون
|
||||
// { ts: 1527813809, e: "namaz" }, // لمونځ
|
||||
{ ts: 1527817123, e: "wet" }, // لومد
|
||||
{ ts: 1527817117, e: "wet" }, // لوند
|
||||
{ ts: 1576889120767, e: "wet" }, // لوند
|
||||
{ ts: 1527812927, e: "full, satisfied" }, // موړ
|
||||
{ ts: 1527812908, e: "guest" }, // مېلمه
|
||||
// { ts: 1527813810, e: "namaz" }, // نمونځ
|
||||
{ ts: 1579463171333, e: "cleansed" }, // نوږ
|
||||
{ ts: 1576113803291, e: "small" }, // ووړ
|
||||
];
|
|
@ -0,0 +1,131 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527821744, e: "cook, chef" }, // آشپز - aashpáz
|
||||
{ ts: 1527812461, e: "hero, brave" }, // اتل - atul
|
||||
{ ts: 1527821649, e: "impressive, effective, influencing" }, // اثرناک - asarnáak
|
||||
{ ts: 1527818704, e: "wide, spacious, extensive" }, // ارت - arát
|
||||
{ ts: 1578340121962, e: "free, independant" }, // ازاد - azáad
|
||||
{ ts: 1527819418, e: "independant, autonomous" }, // خپلواک - khpulwaak
|
||||
{ ts: 1527817146, e: "resident; settled" }, // استوګن - astogan
|
||||
{ ts: 1527813713, e: "hopeful, pregnant" }, // امیدوار - Umeedwaar
|
||||
{ ts: 1527819451, e: "Englishman, English (adjective)" }, // انګرېز - angréz
|
||||
{ ts: 1527820346, e: "on-line" }, // انلاین - anlaayn
|
||||
{ ts: 1527813667, e: "important" }, // اهم - aham
|
||||
{ ts: 1598724912198, e: "dry" }, // اوچ - ooch
|
||||
{ ts: 1527815138, e: "insurgent" }, // اورپک - orpak
|
||||
{ ts: 1586452587974, e: "free, available" }, // اوزګار - oozgáar
|
||||
{ ts: 1527816489, e: "faithful, believer" }, // ایماندار - eemaandaar
|
||||
{ ts: 1527820433, e: "valiant" }, // باتور - baatóor
|
||||
{ ts: 1527813425, e: "stingy" }, // بخیل - bakheel
|
||||
{ ts: 1527812511, e: "bad" }, // بد - bud, bad
|
||||
{ ts: 1527812518, e: "equal, even, set up" }, // برابر - buraabur
|
||||
{ ts: 1527811861, e: "naked" }, // بربنډ - barbunD
|
||||
{ ts: 1527811511, e: "full, complete" }, // بشپړ - bushpuR
|
||||
{ ts: 1527812515, e: "other, next" }, // بل - bul
|
||||
{ ts: 1527815725, e: "knowledgeable, accustomed" }, // بلد - balad
|
||||
{ ts: 1577301753727, e: "closed" }, // بند - band
|
||||
{ ts: 1527812490, e: "useless" }, // بې کار - be kaar
|
||||
{ ts: 1527812031, e: "separate, different" }, // بېل - bel
|
||||
{ ts: 1527815144, e: "clean, pure" }, // پاک - paak
|
||||
{ ts: 1527815201, e: "hidden" }, // پټ - puT
|
||||
{ ts: 1527815179, e: "wide" }, // پلن - plun
|
||||
{ ts: 1527819059, e: "thick, fat" }, // پنډ - punD
|
||||
{ ts: 1611767359178, e: "compassionate" }, // ترسناک - tarsnáak
|
||||
{ ts: 1527813270, e: "sour" }, // تروش - troosh
|
||||
{ ts: 1527813817, e: "narrow, cramped" }, // تنګ - tang
|
||||
{ ts: 1527816354, e: "ready" }, // تیار - tayaar
|
||||
{ ts: 1527817056, e: "sharp, fast" }, // تېز - tez
|
||||
{ ts: 1527814076, e: "societal, social" }, // ټولنیز - Toluneez
|
||||
{ ts: 1527819864, e: "low" }, // ټیټ - TeeT
|
||||
{ ts: 1527811894, e: "firm, tough, rigid" }, // ټینګ - Teeng
|
||||
{ ts: 1527812943, e: "constant, stable, proven" }, // ثابت - saabit
|
||||
{ ts: 1527813085, e: "heavy, difficult" }, // ثقیل - saqeel
|
||||
{ ts: 1527820479, e: "ignorant" }, // جاهل - jaahíl
|
||||
{ ts: 1588160800930, e: "surgeon" }, // جراح - jarráah
|
||||
{ ts: 1527812707, e: "high, tall" }, // جګ - jig, jug
|
||||
{ ts: 1527816944, e: "clear, evident" }, // جوت - jawat
|
||||
{ ts: 1527822996, e: "alongside, adjoining" }, // جوخت - jokht
|
||||
{ ts: 1527812711, e: "well, healthy" }, // جوړ - joR
|
||||
{ ts: 1527816323, e: "shining, sparkling" }, // ځلاند - dzalaand
|
||||
{ ts: 1527812291, e: "young, youthful" }, // ځوان - dzwaan
|
||||
{ ts: 1527820112, e: "hanging" }, // ځوړند - dzwáRund
|
||||
{ ts: 1527819672, e: "crafty" }, // چالاک - chaaláak
|
||||
{ ts: 1527811230, e: "quick, fast" }, // چټک - chaTak
|
||||
{ ts: 1527812524, e: "started, in motion" }, // چلان - chalaan
|
||||
{ ts: 1527822858, e: "curly, wavy" }, // څپول - tsapól
|
||||
{ ts: 1527815370, e: "clear, apparent" }, // څرګند - tsărgund
|
||||
{ ts: 1576366107077, e: "straight, upright" }, // څک - tsak
|
||||
{ ts: 1527812113, e: "present, on hand, ready" }, // حاضر - haazir, haazur
|
||||
{ ts: 1527820699, e: "pregnant, carrying" }, // حامل - haamíl
|
||||
{ ts: 1527819824, e: "greedy" }, // حریص - harées
|
||||
{ ts: 1527812669, e: "sensitive" }, // حساس - hasaas
|
||||
{ ts: 1527812057, e: "raw, unripe" }, // خام - khaam
|
||||
{ ts: 1527811523, e: "traitor, treacherous" }, // خاین - khaayin
|
||||
{ ts: 1527814219, e: "relative, one's own" }, // خپل - khpul
|
||||
{ ts: 1527812795, e: "relative" }, // خپلوان - khpulwaan
|
||||
{ ts: 1527812808, e: "poor, miserable" }, // خوار - khwaar
|
||||
{ ts: 1611065752352, e: "moldy" }, // دربجن - drabjan
|
||||
{ ts: 1527814880, e: "tall" }, // دنګ - dung
|
||||
{ ts: 1527812537, e: "assured" }, // ډاډمن - DaaDmun
|
||||
{ ts: 1527812583, e: "full" }, // ډک - Duk
|
||||
{ ts: 1527822674, e: "gaunt" }, // ډنګر - Dungár, Dangár
|
||||
{ ts: 1527817256, e: "sunk" }, // ډوب - Doob
|
||||
{ ts: 1527812559, e: "very, lots" }, // ډېر - Der
|
||||
{ ts: 1527814277, e: "healthy" }, // روغ - rogh
|
||||
{ ts: 1609780006604, e: "fruitful" }, // زرخېز - zarkhéz
|
||||
{ ts: 1527817116, e: "green, flourishing" }, // زرغون - zarghoon
|
||||
{ ts: 1527814026, e: "golden" }, // زرین - zareen
|
||||
{ ts: 1567594312839, e: "brave" }, // زړه ور - zuRawár
|
||||
{ ts: 1527815848, e: "committed" }, // ژمن - jzman
|
||||
{ ts: 1527813498, e: "light" }, // سپک - spuk
|
||||
{ ts: 1610447888169, e: "stale, dry (bread/crust); offensive, unpleasant (word)" }, // سپور - spor
|
||||
{ ts: 1578329248464, e: "white" }, // سپین - speen
|
||||
{ ts: 1527811860, e: "great" }, // ستر - stur
|
||||
{ ts: 1527820178, e: "problematic" }, // ستونزمن - stoonzmán
|
||||
{ ts: 1527815246, e: "difficult" }, // سخت - sakht
|
||||
{ ts: 1527817262, e: "barren" }, // شنډ - shanD
|
||||
{ ts: 1527813426, e: "stingy" }, // شوم - shoom
|
||||
{ ts: 1527812625, e: "big" }, // غټ - ghuT, ghaT
|
||||
{ ts: 1527811846, e: "successful" }, // کامیاب - kaamyaab
|
||||
{ ts: 1527823678, e: "lazy" }, // کاهل - kaahíl
|
||||
{ ts: 1527814896, e: "proud, arrogant" }, // کبرجن - kaburjun
|
||||
{ ts: 1527813117, e: "firm, solid" }, // کلک - klak, kluk
|
||||
{ ts: 1578769492475, e: "few, little" }, // کم - kam
|
||||
// { ts: 1527814253, e: "mixed up" }, // ګډ وډ // TODO: FIX INFLECTION MACHINE FOR DOUBLES!
|
||||
{ ts: 1578769409512, e: "weak" }, // کمزور - kamzór
|
||||
{ ts: 1527812639, e: "dear, difficult" }, // ګران - graan
|
||||
{ ts: 1527816786, e: "all" }, // ګرد - gurd
|
||||
{ ts: 1527814811, e: "warm, hot" }, // ګرم - garm, garum
|
||||
{ ts: 1527817662, e: "guilty" }, // ګرم - gram
|
||||
{ ts: 1527812308, e: "thick, lots" }, // ګڼ - gaN
|
||||
{ ts: 1527813848, e: "desiring, eager" }, // لېوال - lewaal
|
||||
{ ts: 1527816011, e: "broken" }, // مات - maat
|
||||
{ ts: 1527812881, e: "child" }, // ماشوم - maashoom
|
||||
{ ts: 1527817007, e: "known" }, // مالوم - maaloom
|
||||
{ ts: 1527814321, e: "positive" }, // مثبت - mUsbat
|
||||
{ ts: 1527811264, e: "condemned" }, // محکوم - mahkoom
|
||||
{ ts: 1527814802, e: "foul" }, // مردار - mUrdáar
|
||||
{ ts: 1527821812, e: "arrogant" }, // مغرور - maghróor
|
||||
{ ts: 1527820222, e: "lying down" }, // ملاست - mlaast
|
||||
{ ts: 1527814344, e: "important" }, // مهم - mUhím
|
||||
{ ts: 1527816033, e: "uncommon" }, // نادر - naadir
|
||||
{ ts: 1527815106, e: "sitting, seated" }, // ناست - naast
|
||||
{ ts: 1527815127, e: "nurse" }, // نرس - nurs
|
||||
{ ts: 1527821673, e: "moist, damp, wet" }, // نمجن - namjún
|
||||
{ ts: 1527815130, e: "dry, land, ground" }, // وچ - wuch, wUch
|
||||
{ ts: 1527817486, e: "ruined, destroyed; destructive, bad, naughty" }, // وران - wraan
|
||||
{ ts: 1527814373, e: "lost" }, // ورک - wruk
|
||||
{ ts: 1527822838, e: "decayed, spoiled, rotten" }, // وروست - wrost
|
||||
{ ts: 1609949334478, e: "roasted" }, // وریت - wreet
|
||||
{ ts: 1527823106, e: "cheerful" }, // ورین - wreen
|
||||
{ ts: 1527811544, e: "standing" }, // ولاړ - waláaR, wuláaR
|
||||
{ ts: 1527815498, e: "aforementioned" }, // یاد - yaad
|
||||
{ ts: 1527815434, e: "cold" }, // یخ - yakh, yukh
|
||||
];
|
|
@ -0,0 +1,50 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527822004, e: "last, final" }, // آخرینی - aakhireenéy
|
||||
{ ts: 1591872915426, e: "Afghan (person)" }, // افغانی - afghaanéy
|
||||
{ ts: 1612616237182, e: "Pakistani (person)"}, // پاکستانی - paakistaanéy
|
||||
{ ts: 1527813400, e: "current" }, // اوسنی - oosanéy
|
||||
{ ts: 1527815661, e: "first" }, // اولنی - awwalunéy
|
||||
{ ts: 1527812476, e: "child" }, // بچی - bachéy
|
||||
{ ts: 1527816646, e: "foreigner, outer" }, // بهرنی - baharanéy, bahranéy
|
||||
{ ts: 1527818769, e: "emergency" }, // بېړنی - beRanéy
|
||||
{ ts: 1592382613021, e: "old, ancient, former" }, // پخوانی - pakhwaanéy
|
||||
{ ts: 1527819532, e: "foreign, unrelated" }, // پردی - pradéy, prudéy
|
||||
{ ts: 1577381894391, e: "Englishman, Westerner" }, // پرنګی - parangéy
|
||||
{ ts: 1527820194, e: "so-and-so" }, // پلانکی - pulaankéy
|
||||
{ ts: 1527820130, e: "adherent" }, // پلوی - palawéy
|
||||
{ ts: 1582390092514, e: "upper, above" }, // پورتنی - portinéy
|
||||
{ ts: 1610617741649, e: "old, ancient" }, // ځنډنی - dzanDanéy, dzanDunéy
|
||||
{ ts: 1610793723568, e: "goat" }, // چېلی - cheléy
|
||||
{ ts: 1527819362, e: "calf (animal)" }, // خوسی - khooséy
|
||||
{ ts: 1590052667427, e: "witness" }, // درستی - drustéy, drastéy
|
||||
{ ts: 1527822854, e: "first, before" }, // ړومبی - Roombéy
|
||||
{ ts: 1527820213, e: "lion" }, // زمری - zmaréy
|
||||
{ ts: 1527813923, e: "living" }, // ژوندی - jzwundéy
|
||||
{ ts: 1527815299, e: "dog" }, // سپی - spéy
|
||||
{ ts: 1527820788, e: "city, urban" }, // ښارنی - xaaranéy
|
||||
{ ts: 1527812822, e: "little, small" }, // کوچنی - koochnéy
|
||||
{ ts: 1527823742, e: "nomadic" }, // کوچی - kochéy
|
||||
{ ts: 1527818765, e: "speedy, quick" }, // ګړندی - guRandéy
|
||||
{ ts: 1527819130, e: "cute" }, // ګلالی - gUlaaléy
|
||||
{ ts: 1576101261017, e: "mute (person)" }, // ګنګی - gangéy
|
||||
{ ts: 1582316583262, e: "lower, bottom" }, // لاندینی - laandeenéy
|
||||
{ ts: 1527816249, e: "grandchild" }, // لمسی - lmaséy
|
||||
{ ts: 1527813472, e: "first" }, // لومړنی - loomRanéy
|
||||
{ ts: 1527813132, e: "first" }, // لومړی - loomRéy
|
||||
{ ts: 1527819910, e: "slippery, smooth" }, // متلی - mutléy
|
||||
{ ts: 1527820414, e: "middle, central" }, // منځنی - mandzunéy
|
||||
{ ts: 1527811202, e: "monthly" }, // میاشتنی - miyaashtanéy
|
||||
{ ts: 1527819320, e: "thin" }, // نری - naréy
|
||||
{ ts: 1527816251, e: "grandson" }, // نمسی - nmaséy
|
||||
{ ts: 1527821373, e: "deer" }, // هوسی - hoséy
|
||||
{ ts: 1527813636, e: "last" }, // وروستی - wroostéy
|
||||
{ ts: 1527815430, e: "only" }, // یوازنی - yawaazunéy
|
||||
];
|
|
@ -0,0 +1,65 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1582853867682, e: "resident" }, // اوسېدونکی
|
||||
{ ts: 1527813469, e: "forgiving" }, // بخښونکی
|
||||
{ ts: 1527817829, e: "debtor" }, // پوروړی
|
||||
{ ts: 1527815205, e: "powerful" }, // پیاوړی
|
||||
{ ts: 1527815924, e: "customer" }, // پېرودونکی
|
||||
{ ts: 1527819604, e: "tense, stern" }, // ترینګلی
|
||||
{ ts: 1527813406, e: "bound, tied" }, // تړلی
|
||||
{ ts: 1527815381, e: "thirsty" }, // تږی
|
||||
{ ts: 1527817607, e: "disgraceful, shameful, dishonered" }, // تور مخی
|
||||
{ ts: 1527822859, e: "dishevelled, messy, curly (with hair etc.)" }, // څپولی
|
||||
{ ts: 1527811466, e: "researcher" }, // څېړونکی
|
||||
{ ts: 1527812377, e: "obedient, submissive" }, // حکم منونکی
|
||||
{ ts: 1527817299, e: "amazing, surprising" }, // حیرانوونکی
|
||||
{ ts: 1527813282, e: "seller" }, // خرڅوونکی
|
||||
{ ts: 1527812809, e: "malnourished" }, // خوار ځواکی
|
||||
{ ts: 1591871233587, e: "well-spoken" }, // خوږژبی
|
||||
{ ts: 1527814118, e: "painful, agonizing" }, // دردوونکی
|
||||
{ ts: 1527820657, e: "mediator, arbitrator" }, // درېیمګړی
|
||||
{ ts: 1527818179, e: "cross-eyed, blind in one eye, one eyed" }, // دوه ګوری
|
||||
{ ts: 1527815713, e: "coming, future" }, // راتلونکی
|
||||
{ ts: 1527812142, e: "true, truthful" }, // رښتنی
|
||||
{ ts: 1527812161, e: "true, truthful" }, // رښتونی
|
||||
{ ts: 1527811507, e: "true, truthful" }, // رښتینی
|
||||
{ ts: 1527813758, e: "student" }, // زدکوونکی
|
||||
{ ts: 1577058349091, e: "interesting, pleasant" }, // زړه پوری
|
||||
{ ts: 1527817400, e: "merciful, compassionate" }, // زړه سواندی
|
||||
{ ts: 1527819587, e: "translator" }, // ژباړونکی
|
||||
{ ts: 1527814888, e: "savior, saviour, rescuer" }, // ژغورونکی
|
||||
{ ts: 1527818109, e: "pure, holy, magnificent" }, // سپېڅلی
|
||||
{ ts: 1527811338, e: "sincere hearted, trusting" }, // سپین زړی
|
||||
{ ts: 1527815306, e: "tired" }, // ستړی
|
||||
{ ts: 1527822745, e: "burned" }, // سټکوری
|
||||
{ ts: 1527817442, e: "heard-hearted" }, // سخت زړی
|
||||
{ ts: 1527816932, e: "soldier" }, // سرتېری
|
||||
{ ts: 1527820170, e: "singer" }, // سندرغاړی
|
||||
{ ts: 1527819964, e: "burning" }, // سوځېدونکی
|
||||
{ ts: 1527821951, e: "burned" }, // سوی
|
||||
{ ts: 1527812779, e: "beautiful" }, // ښکلی
|
||||
{ ts: 1527812806, e: "teacher" }, // ښوونکی
|
||||
{ ts: 1527811350, e: "quiet, silent" }, // غلی
|
||||
{ ts: 1527819637, e: "worker" }, // کارکوونکی
|
||||
{ ts: 1527818613, e: "weak" }, // کمزوری
|
||||
{ ts: 1595516629483, e: "deafening" }, // کڼوونکی
|
||||
{ ts: 1527820661, e: "mediator" }, // مېنځګړی
|
||||
{ ts: 1527814047, e: "aforesaid, above-mentioned" }, // نوموړی
|
||||
{ ts: 1527813822, e: "new" }, // نوی
|
||||
{ ts: 1586453720908, e: "encouraging" }, // هڅوونکی
|
||||
{ ts: 1588163180700, e: "stunning, amazing" }, // هېښوونکی
|
||||
{ ts: 1527823715, e: "small, little" }, // وړکوټی
|
||||
{ ts: 1527823714, e: "small, little" }, // وړکی
|
||||
{ ts: 1527815403, e: "little, small" }, // وړوکی
|
||||
{ ts: 1527813916, e: "lethal, deadly" }, // وژونکی
|
||||
{ ts: 1527815424, e: "hungry" }, // وږی
|
||||
{ ts: 1527823713, e: "small, little" }, // ووړکی
|
||||
{ ts: 1527816455, e: "separated, divided" }, // وېشلی
|
||||
];
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527816778, e: "long" }, // اوږد - ooGd, ooGud
|
||||
{ ts: 1527822706, e: "raw, unripe, immature" }, // اوم - oom
|
||||
{ ts: 1527812802, e: "donkey" }, // خر - khur
|
||||
{ ts: 1527813293, e: "red, hot" }, // سور - soor
|
||||
{ ts: 1527815265, e: "green, blue" }, // شین - sheen
|
||||
{ ts: 1527812796, e: "good" }, // ښه - xu
|
||||
{ ts: 1527812624, e: "thief" }, // غل - ghul
|
||||
{ ts: 1527815087, e: "dead" }, // مړ - muR
|
||||
{ ts: 1527814151, e: "companion, friend" }, // مل - mal
|
||||
{ ts: 1527813580, e: "one" }, // یو - yo
|
||||
];
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1577383674332, e: "to howl" },// انګولل - to howl, wail
|
||||
{ ts: 1527818962, e: "to sneeze" },// پرنجل - to sneeze
|
||||
{ ts: 1527821425, e: "to cough" },// ټوخل - to cough
|
||||
{ ts: 1527812767, e: "to laugh" },// خندل - to laugh
|
||||
{ ts: 1605360223155, e: "to jump" },// دنګل - to jump, leap, run, race
|
||||
{ ts: 1605360127430, e: "to swing" },// زنګل - to swing, rock (back and forth)
|
||||
{ ts: 1527812717, e: "to swing" },// ژړل - to cry
|
||||
{ ts: 1591899573844, e: "to dance" },// نڅل - to dance
|
||||
]
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527813473, e: "to fly" },// الوتل - to fly
|
||||
{ ts: 1527814012, e: "to pass over" },// اوښتل - to pass over, overturn, be flipped over, spill over, shift, change, diverge, pass, cross, abandon
|
||||
{ ts: 1527822843, e: "to seem" },// برېښېدل - to appear, seem; to shine, sparkle; to smart, have a pricking pain
|
||||
{ ts: 1527815183, e: "to understand" },// پوهېدل - to understand (to do the act of understanding)
|
||||
{ ts: 1527816495, e: "to escape" },// تښتېدل - to run off, escape, flee
|
||||
{ ts: 1527813022, e: "to cough" },// ټوخېدل - to cough
|
||||
{ ts: 1527817259, e: "to fall" },// پرېوتل - to fall
|
||||
{ ts: 1577572987826, e: "to fight, bump into" },// جنګېدل - to fight, battle, war, to bump or crash into
|
||||
{ ts: 1527818535, e: "to hang" },// ځړېدل - to hang, to be hung, to be lowered
|
||||
{ ts: 1527812273, e: "to shine" },// ځلېدل - to shine, glow, glitter
|
||||
{ ts: 1577921634357, e: "to be delayed" },// ځنډېدل - to be delayed, postponed, held back, detained
|
||||
{ ts: 1527814025, e: "to climb" },// ختل - to climb, ascend, rise, go up; to fall out, to fall off, to leave/dissapear; to turn out to be ...
|
||||
{ ts: 1527823376, e: "to go out" },// وتل - to go out
|
||||
{ ts: 1527814433, e: "to shake" },// خوځېدل - to shake, tremble, wiggle, move, vibrate
|
||||
{ ts: 1527818980, e: "to shake" },// رپېدل - to quiver, shake, flutter, shiver
|
||||
{ ts: 1578191534500, e: "to have mercy" },// رحمېدل - to have mercy on, to have compassion on
|
||||
{ ts: 1527813573, e: "to arrive" },// رسېدل - reach, arrive; (fig.) understand, attain to; mature, ripen
|
||||
{ ts: 1527813837, e: "to burn" },// سوځېدل - to burn
|
||||
{ ts: 1527814597, e: "to be ashamed" },// شرمېدل - to be ashamed, to be embarrassed, to be shy
|
||||
{ ts: 1527821558, e: "to break apart" },// شړېدل - to be decomposed, break down, fall apart; to be boiled soft (meat)
|
||||
{ ts: 1527811516, e: "to be torn" },// شلېدل - to be torn, broken, rent, broken, severed
|
||||
{ ts: 1527812615, e: "to stretch out" },// غځېدل - stretch out, lie, be extended, expand
|
||||
{ ts: 1527813680, e: "to speak" },// غږېدل - to converse, speak, talk, sing
|
||||
{ ts: 1527814867, e: "to fall" },// غورځېدل - to jump, leap, fall
|
||||
{ ts: 1527823696, e: "to be deceived" },// غولېدل - to be deceived, cheated, fooled
|
||||
{ ts: 1527812759, e: "to sit down" },// کېناستل - to sit
|
||||
{ ts: 1527812645, e: "to walk around" },// ګرځېدل - to walk, wander, turn about; to become, to be
|
||||
{ ts: 1527814430, e: "to tremble" },// لړزېدل - to shake, shudder, tremble, vibrate
|
||||
{ ts: 1527814085, e: "to touch" },// لګېدل - to be busy or in motion, to be spent, to flare up, to hit, crash, touch, to suit / fit / conform, to seem
|
||||
{ ts: 1527813994, e: "to fall" },// لوېدل - to fall, to tumble, go down, settle
|
||||
{ ts: 1527823019, e: "to be afraid" },// وېرېدل - to be afraid, scared, to fear
|
||||
{ ts: 1581086654898, e: "to become" },// کېدل - to become _____
|
||||
{ ts: 1527812754, e: "to happen" },// کېدل - to happen, occur
|
||||
{ ts: 1527815348, e: "to go" },// تلل - to go
|
||||
{ ts: 1527815216, e: "to come" },// راتلل - to come
|
||||
{ ts: 1527819674, e: "to lie down" },// څملاستل - to lie down
|
||||
]
|
|
@ -0,0 +1,79 @@
|
|||
/**
|
||||
* Copyright (c) 2021 lingdocs.com
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
module.exports = [
|
||||
{ ts: 1527814617, e: "to take" }, // نیول - to take
|
||||
{ ts: 1527811872, e: "to put on" }, // اچول - to put, pour, drop, throw, put on
|
||||
{ ts: 1527817298, e: "to take" }, // اخیستل - to take, buy, purchase, receive; to shave, cut with scissors
|
||||
{ ts: 1527816127, e: "to turn over" }, // اړول - to turn over, flip over; convert, change; to move over to, establish oneself in a new spot; divert, turn away, hijack
|
||||
{ ts: 1527811605, e: "to test" }, // ازمویل - to attempt, try; to experiment, test
|
||||
{ ts: 1527812458, e: "to send" },// استول - to send
|
||||
{ ts: 1527811397, e: "to wear" },// اغوستل - to wear, to put on (clothes)
|
||||
{ ts: 1527816125, e: "to make fly" },// الوزول - to make fly, to toss, to release (birds); to blow up
|
||||
{ ts: 1527816146, e: "to take out" },// ایستل - to throw out, discard, chuck, toss; to extract, to take out
|
||||
{ ts: 1527817786, e: "to forgive" },// بخښل - to forgive, to pardon
|
||||
{ ts: 1527816092, e: "to call, deem" },// بلل - to call, invite; to consider, deem
|
||||
{ ts: 1577389204616, e: "to open" },// پرانیستل - to open; to undo; to initiate
|
||||
{ ts: 1527816874, e: "to sell" },// پلورل - to sell
|
||||
{ ts: 1527815190, e: "to quit" },// پرېښودل - to quit
|
||||
{ ts: 1527815216, e: "to come" },// راتلل - to come
|
||||
{ ts: 1527812284, e: "to put" },// کېښودل - to put
|
||||
{ ts: 1577394422280, e: "to make understand" },// پوهول - to explain, to try to make understand
|
||||
{ ts: 1527815165, e: "to recognize" },// پېژندل - to recognize, know, meet
|
||||
{ ts: 1527813405, e: "to tie" },// تړل - to connect, tie, bind, close
|
||||
{ ts: 1527813394, e: "to select, appoint" },// ټاکل - to select, appoint
|
||||
{ ts: 1527813755, e: "to bother" },// ځورول - to bother, irritate, torture, distress, vex, grind on
|
||||
{ ts: 1527814586, e: "to drive" },// چلول - to drive, operate, handle, put forward, circulate
|
||||
{ ts: 1527816564, e: "to bite" },// چیچل - to bite, chew, grind (teeth), clench (teeth), sting
|
||||
{ ts: 1527812790, e: "to eat" },// خوړل - to eat, to bite
|
||||
{ ts: 1527815489, e: "to bite" },// داړل - to bite, tear, gnaw
|
||||
{ ts: 1527813572, e: "to deliver" },// رسول - to deliver, to make arrive, provide, send, supply, bring to,
|
||||
{ ts: 1527816064, e: "to endure" },// زغمل - to endure, bear, tolerate, take on, digest
|
||||
{ ts: 1527813637, e: "to praise" },// ستایل - to praise, commend, glorify, mention
|
||||
{ ts: 1527817750, e: "to drink" },// سکل - to drink
|
||||
{ ts: 1527814596, e: "to shame" },// شرمول - to shame, to disgrace, to dishonor
|
||||
{ ts: 1527814908, e: "to drive out" },// شړل - to drive out, fire, evict, push out
|
||||
{ ts: 1527815531, e: "to tear" },// شکول - to tear, to break of, to dig up, to pull out
|
||||
{ ts: 1527815296, e: "to count" },// شمارل - to count
|
||||
{ ts: 1527815273, e: "to count" },// شمېرل - to count
|
||||
{ ts: 1527811293, e: "to show" },// ښودل - to show; to teach; to suit, look good with (fig.), befit
|
||||
{ ts: 1527817865, e: "to extend" },// غځول - to extend, to stretch out, to expand
|
||||
{ ts: 1527815886, e: "to condemn" },// غندل - to condemn, reproach, to criticize
|
||||
{ ts: 1527816122, e: "to throw" },// غورځول - to throw, hurl, fling
|
||||
{ ts: 1527812627, e: "to want" },// غوښتل - to want, to request
|
||||
{ ts: 1527819301, e: "to deceive" },// غولول - to deceive, cheat, fool
|
||||
{ ts: 1527813568, e: "to use" },// کارول - to use, utilize
|
||||
{ ts: 1527816300, e: "to sow, plant" },// کرل - to sow, to plant
|
||||
{ ts: 1527817577, e: "to put" },// کښېښودل - to put, to put down, to set in place
|
||||
{ ts: 1527811289, e: "to seat" },// کېنول - to seat, to make or have someone sit down
|
||||
{ ts: 1527817661, e: "to endure" },// ګالل - to bear up under (diffucult things), to suffer, to take, to endure
|
||||
{ ts: 1527812649, e: "to win, earn" },// ګټل - to earn (money), to win
|
||||
{ ts: 1527812612, e: "to sew" },// ګنډل - to sew, mend, make, knit
|
||||
{ ts: 1527812000, e: "to consider" },// ګڼل - to count, consider, reckon, suppose, assume
|
||||
{ ts: 1527812873, e: "to read" },// لوستل - to read, study
|
||||
{ ts: 1527812869, e: "to search" },// لټول - to search, seek
|
||||
{ ts: 1527813866, e: "to send" },// لېږل - to send
|
||||
{ ts: 1527812856, e: "to write" },// لیکل - to write
|
||||
{ ts: 1527815085, e: "to accept" },// منل - to accept, to believe
|
||||
{ ts: 1527815399, e: "to hit" },// وهل - to hit
|
||||
{ ts: 1527823020, e: "to scare" },// وېرول - to make afraid, to scare, to make fear
|
||||
{ ts: 1527811701, e: "to divide" },// وېشل - divide, distribute, share
|
||||
{ ts: 1579015359582, e: "to make ____ ____" },// کول - to make ____ ____ (as in "He's making me angry.")
|
||||
{ ts: 1527812752, e: "to do" },// کول - to do (an action or activity)
|
||||
{ ts: 1527816865, e: "to bring" },// وړل
|
||||
{ ts: 1527815214, e: "to bring" },// راوړل - to bring
|
||||
{ ts: 1527819827, e: "to bring" },// راوستل - to bring
|
||||
{ ts: 1527812507, e: "to take/bring" }, // بوتلل - to take
|
||||
// also grammatically transitive
|
||||
{ ts: 1527812275, e: "to see" },// لیدل - to see
|
||||
{ ts: 1577049208257, e: "to hear" },// اورېدل - to hear
|
||||
{ ts: 1527812362, e: "to declare" },// فرمایل - to declare
|
||||
{ ts: 1527812751, e: "to look" },// کتل - to look
|
||||
{ ts: 1527815396, e: "to say" },// وایل - to say
|
||||
{ ts: 1527817013, e: "to say" },// ویل - to say
|
||||
]
|