pashto-inflector/src/library.ts

141 lines
3.3 KiB
TypeScript
Raw Normal View History

2021-03-09 12:39:13 +00:00
/**
* 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 {
conjugateVerb,
} from "./lib/verb-conjugation";
import {
inflectWord,
} from "./lib/pashto-inflector";
import {
getVerbInfo,
} from "./lib/verb-info";
import ConjugationViewer from "./components/ConjugationViewer";
import InflectionsTable from "./components/InflectionsTable";
import Pashto from "./components/Pashto";
import Phonetics from "./components/Phonetics";
import InlinePs from "./components/InlinePs";
import ButtonSelect from "./components/ButtonSelect";
import VerbFormDisplay from "./components/VerbFormDisplay";
import VerbTable from "./components/VerbTable";
import Examples from "./components/Examples";
import VerbInfo, { RootsAndStems } from "./components/verb-info/VerbInfo";
import {
addToForm,
concatPsString,
makePsString,
removeFVarients,
2021-07-15 09:57:04 +00:00
isVerbBlock,
isImperativeBlock,
2021-09-15 00:55:47 +00:00
isPluralInflectionSet,
isUnisexSet,
2021-07-15 09:57:04 +00:00
isInflectionSet,
2021-03-09 12:39:13 +00:00
} from "./lib/p-text-helpers";
import { standardizePashto } from "./lib/standardize-pashto";
2021-03-18 12:01:52 +00:00
import { phoneticsToDiacritics } from "./lib/phonetics-to-diacritics";
2021-03-09 12:39:13 +00:00
import {
2021-07-24 15:43:53 +00:00
convertSpelling,
revertSpelling,
2021-03-09 12:39:13 +00:00
} from "./lib/convert-spelling";
import {
dictionaryEntryBooleanFields,
dictionaryEntryNumberFields,
dictionaryEntryTextFields,
} from "./lib/fields";
import {
validateEntry
} from "./lib/validate-entry";
2021-03-10 11:37:35 +00:00
import {
readDictionary,
writeDictionary,
readDictionaryInfo,
writeDictionaryInfo,
} from "./lib/protobuf";
2021-03-10 16:51:40 +00:00
import {
pashtoConsonants,
} from "./lib/pashto-consonants";
import {
isNounAdjOrVerb,
2021-07-14 00:44:27 +00:00
getEnglishPersonInfo,
getPersonFromVerbForm,
getPersonNumber,
2021-07-15 09:57:04 +00:00
personFromVerbBlockPos,
2021-03-10 16:51:40 +00:00
} from "./lib/misc-helpers";
2021-03-16 13:35:41 +00:00
import {
simplifyPhonetics,
} from "./lib/simplify-phonetics";
2021-03-18 12:05:49 +00:00
import {
translatePhonetics,
} from "./lib/translate-phonetics";
2021-06-05 16:29:35 +00:00
import {
addDiacritics,
} from "./lib/diacritics";
2021-09-02 12:37:45 +00:00
import {
removeAccents,
2021-09-03 11:27:02 +00:00
hasAccents,
2021-09-02 12:37:45 +00:00
} from "./lib/accent-helpers";
2021-03-09 12:39:13 +00:00
import defaultTextOptions from "./lib/default-text-options";
import * as grammarUnits from "./lib/grammar-units";
import * as Types from "./types";
export {
// FUNCTIONS
conjugateVerb,
getVerbInfo,
inflectWord,
addToForm,
concatPsString,
makePsString,
removeFVarients,
2021-03-09 12:39:13 +00:00
standardizePashto,
2021-07-24 15:43:53 +00:00
convertSpelling,
revertSpelling,
2021-03-09 12:39:13 +00:00
validateEntry,
2021-03-10 16:51:40 +00:00
isNounAdjOrVerb,
2021-03-16 13:35:41 +00:00
simplifyPhonetics,
2021-03-18 12:01:52 +00:00
phoneticsToDiacritics,
2021-06-05 16:29:35 +00:00
addDiacritics,
2021-03-18 12:05:49 +00:00
translatePhonetics,
2021-07-14 00:44:27 +00:00
getEnglishPersonInfo,
getPersonFromVerbForm,
getPersonNumber,
2021-07-15 09:57:04 +00:00
isVerbBlock,
isImperativeBlock,
isInflectionSet,
2021-09-15 00:55:47 +00:00
isPluralInflectionSet,
isUnisexSet,
2021-07-15 09:57:04 +00:00
personFromVerbBlockPos,
2021-09-02 12:37:45 +00:00
removeAccents,
2021-09-03 11:27:02 +00:00
hasAccents,
2021-03-10 11:37:35 +00:00
// protobuf helpers
readDictionary,
writeDictionary,
readDictionaryInfo,
writeDictionaryInfo,
2021-03-09 12:39:13 +00:00
// COMPONENTS
ConjugationViewer,
Examples,
VerbFormDisplay,
VerbTable,
VerbInfo,
RootsAndStems,
InflectionsTable,
Pashto,
Phonetics,
InlinePs,
ButtonSelect,
// OTHER
grammarUnits,
2021-03-10 16:51:40 +00:00
pashtoConsonants,
2021-03-09 12:39:13 +00:00
defaultTextOptions,
dictionaryEntryTextFields,
dictionaryEntryNumberFields,
dictionaryEntryBooleanFields,
// TYPES
Types,
}