React with Native

Bringing together React and React Native

GitHub

README

Language types

language-types (

OperationClassification

TODO: Ensure embedding this will embed the actual docs in my markdown renderer. I guess it might already do so!

TODO: It would be great to learn more about this topic and see if I can make more cross-environment packages. A great use case would be to create a wrapper around the current fs-orm to enable using it at the frontend too.

OperationClassification cjs)

Api reference
🔸 TokiPonaMatrix

jsonMultiple model

DEPRECATED: to be migrated to

WordMatrix

WordMatrix is a matrix that contains as much information about a word as possible in as many languages as possible. Easy to use for 1:1 translation

@see Language

WordMatrix

Properties:

NameTypeDescription
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
categorystring
typestring
tok (optional)string
nl (optional)string
en (optional)string
np (optional)string
pt-br (optional)string
emstring
🔹 WordPriority
Internal
Show internal (16)
🔹 CoreWordMatrixWord

Properties:

NameTypeDescription
priorityLevel (optional)string
rank (optional)number
usageCountCalculated (optional)number
conjucations (optional)array
root_wordMatrixSlug (optional)stringIf the word is a certain conjugation of a root word, this should be a reference to the root word
root_word (optional)object
opposite_wordMatrixSlug (optional)stringIf there's another word that's the complete opposite of this one, you can declare it here
common_wordMatrixSlug (optional)stringf the word is a synonym to a more common word, this should be a reference to the more common synonym. This is a 1:1 synonym only
tokiPona_wordMatrixSlugs (optional)arrayThe closest way to express this word in toki pona terms.
emoji_wordMatrixSlugs (optional)array
emoji (optional)stringSingle emoji describing this word 1:1 (if it are more emojis of multiple words, please use the reference instead)
🔸 KvmdWord

keyValueMarkdown model

Should later be migrated to

WordMatrix

WordMatrix is a matrix that contains as much information about a word as possible in as many languages as possible. Easy to use for 1:1 translation

@see Language

WordMatrix

Properties:

NameTypeDescription
idstring
namestring
slugstring
value (optional)string
commentstring
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
categoryStackCalculatedarray
isHeaderCalculatedboolean
🔹 MappedWordMatrix

Mapped Object for performance reasons

🔸 MarkdownWord

markdown model

Should later be migrated to

WordMatrix

WordMatrix is a matrix that contains as much information about a word as possible in as many languages as possible. Easy to use for 1:1 translation

@see Language

WordMatrix

Properties:

NameTypeDescription
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
namestring
slugstring
markdownstring
categoryStackCalculatedarray
🔸 NepaliEnglishTranslationMatrix

jsonMultiple model

Properties:

NameTypeDescription
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
enstring
indexnumber
nestring
🔸 Statement

markdown model

Properties:

NameTypeDescription
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
namestring
slugstring
markdownstring
categoryStackCalculatedarray
url (optional)string
author (optional)string
agreement (optional)number
readersAgreement (optional)number
readersAgreementVotedCount (optional)number
importancy (optional)number
isImportancySet (optional)boolean
wordSlugsarray
🔸 Translation

jsonMultiple model

We could have a Translation model that collects any translation for any key for any model for any language. The original source text is still stored in the models itself, and every model has just one language.

If you want a markdown or text key to be translated, add {parameter}_TranslationId to the model. The translation can then be generated on-demand and improved afterwards.

Properties:

NameTypeDescription
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
sourcePathstring
languagestring
markdownstring
textstring
🔸 Word

jsonMultiple model

The goal of the words model is to provide a definition for every word we use, in any language.

DEPRECATED: Should be replaced with

WordMatrix

WordMatrix is a matrix that contains as much information about a word as possible in as many languages as possible. Easy to use for 1:1 translation

@see Language

WordMatrix

Properties:

NameTypeDescription
slugstring
namestring
languagestring
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
rank (optional)number
usageCountCalculated (optional)number
english_wordSlug (optional)string
root_wordSlug (optional)string
common_wordSlug (optional)string
tokiPona_wordSlugs (optional)array
definition_statementId (optional)string
parameterNameSlug (optional)string
🔸 WordCategory

jsonMultiple model

Different ways to categorise a word semantically

Properties:

NameTypeDescription
slugstring
namestring
languagestring
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
descriptionstring
🔸 WordCombination

jsonMultiple model

Best way to combine words if you don't want to specify all language specific info for a new word. You can refer to words from the WordMatrix instead!

Properties:

NameTypeDescription
namestring
slugstring
descriptionstring
descriptionAudioobject
image (optional)object
wordCategorySlugsarray
type (optional)string
languagestring
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
wordMatrixSlugs (optional)array
🔹 WordConjucation

In linguistics, conjugation is the creation of derived forms of a verb from its principal parts by inflection

Besides this, there are also other ways to alter a word to add/change meaning, this should be summed up using this enum.

🔹 WordInfo

Properties:

NameTypeDescription
namestring
slugstring
descriptionstring
descriptionAudioobject
image (optional)object
wordCategorySlugsarray
type (optional)string
🔹 WordLanguageInfo

Language specific word information

Properties:

NameTypeDescription
latin (optional)string
alternative (optional)stringthe alternative written representation for this word, if any (if the language commonly uses a different script, this can be noted here)
phonetic (optional)stringPhonetic writing is used to describe how the word is pronounced
audio (optional)objectAudio fragment containing the spoken word.
examples (optional)arrayA list of examples of usage of this word (can contain both a text and audio)
🔹 WordLanguageInfoObject

Properties:

NameTypeDescription
english (optional)object
dutch (optional)object
nepali (optional)object
portuguese (optional)object
brazilian (optional)object
german (optional)object
french (optional)object
spanish (optional)object
italian (optional)object
norwegian (optional)object
swedish (optional)object
danish (optional)object
vietnamese (optional)object
indonesian (optional)object
southAfrican (optional)object
tokiPona (optional)object
hindi (optional)object
mandarin (optional)object
arabic (optional)object
bengali (optional)object
urdu (optional)object
japanese (optional)object
swahili (optional)object
🔸 WordMatrix

jsonMultiple model

WordMatrix is a matrix that contains as much information about a word as possible in as many languages as possible. Easy to use for 1:1 translation

@see Language

Properties:

NameTypeDescription
slugstring
namestring
languagestring
createdAtnumber
updatedAtnumber
deletedAtnumber
createdFirstAtnumber
operationNamenull
projectRelativePathstring
operationRelativePath (optional)string
idstring
categoryStackCalculated (optional)array
priorityLevel (optional)string
rank (optional)number
usageCountCalculated (optional)number
conjucations (optional)array
root_wordMatrixSlug (optional)stringIf the word is a certain conjugation of a root word, this should be a reference to the root word
root_word (optional)object
opposite_wordMatrixSlug (optional)stringIf there's another word that's the complete opposite of this one, you can declare it here
common_wordMatrixSlug (optional)stringf the word is a synonym to a more common word, this should be a reference to the more common synonym. This is a 1:1 synonym only
tokiPona_wordMatrixSlugs (optional)arrayThe closest way to express this word in toki pona terms.
emoji_wordMatrixSlugs (optional)array
emoji (optional)stringSingle emoji describing this word 1:1 (if it are more emojis of multiple words, please use the reference instead)
descriptionstring
descriptionAudioobject
image (optional)object
wordCategorySlugsarray
type (optional)string
english (optional)object
dutch (optional)object
nepali (optional)object
portuguese (optional)object
brazilian (optional)object
german (optional)object
french (optional)object
spanish (optional)object
italian (optional)object
norwegian (optional)object
swedish (optional)object
danish (optional)object
vietnamese (optional)object
indonesian (optional)object
southAfrican (optional)object
tokiPona (optional)object
hindi (optional)object
mandarin (optional)object
arabic (optional)object
bengali (optional)object
urdu (optional)object
japanese (optional)object
swahili (optional)object
🔹 WordType