yujiri.xyz

Thoya

Language design insight: the tradeoffs of parts of speech

I often wonder when working on Thoya what part of speech a word should be. Most concepts could be any. For example, "run" could be an adjective in its base form meaning "running", and we could convey "run" with "be running". Likewise, "green" could've been a verb meaning "to be green", and we could make it an adjective like "I used the one that greens", instead of "I used the green one".

Those are both *parameterless* words - neither one takes an object. The case is a little different for things that have parameters, like "surround" and "around".

They mean the same thing, but one is a verb and the other is a preposition. "Surround" means "be around", and "around" means "surrounding". So prepositions are essentially adjectives with parameters. That's a neat insight.

In English, there are some nouns or adjectives that take parameters. For example, family relation words. "Parent" is a noun despite having a parameter; "parent of" is the preposition form. In Thoya, all such words are implemented as prepositions; the base word for "parent" means "parent of", and if you want to talk about a parent without specifying who of, you could say "parent of someone".

So the three main parts of speech have the following tradeoff:

Therefore,

It's also interesting to note that in Japanese, relative clauses don't take a separator word and go before the noun they modify, meaning verbs don't pay a speed penalty when used subordinately. (And Japanese takes advantage of this by making almost all "adjectives" actually verbs.) I considered that for Thoya but I decided against it on the grounds of clarity; the content of the relative clause shouldn't come before the modified noun or any indication that it's a relative clause, because that's a recipe for garden path sentences.

But, notably, that's what I do with adjectives. My standard as of now is to put adjectives before nouns. My reasoning is that adjectives don't cause such confusion because they don't contain a secondary verb and are usually shorter. (My standard with preposition phrases is to put them after, so they can't be mistaken for applying to more words than they're meant to.)

Proxied content from gemini://yujiri.xyz/thoya/types.gmi

Gemini request details:

Original URL
gemini://yujiri.xyz/thoya/types.gmi
Status code
Success
Meta
text/gemini; lang=en
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.

What is Gemini?