PolyGlot icon indicating copy to clipboard operation
PolyGlot copied to clipboard

[Suggestion] Syllable types -> Words structure

Open ItzShiney opened this issue 2 years ago • 4 comments

The suggestion is to allow regex-like notation in syllable types field and rename it words structure. For example, if all words in a conlang:

  • have structure (C)VCV(C), then write C?VCVC? instead of VCV CVCV VCVC CVCVC
  • consist of 1 to 4 syllables which have structure (C)V(N), then write (C?VN?){1:4} instead of V CV VN CVN VV CVV CVC and so on
  • (the case which made me write this issue) can have up to one aspirated vowel and up to one long vowel, and if both are present then they go one after another & have structure (C)VCV(C), then write [AN]?[VL]NVF? N?V[AN][VL]F? (where N is a non-aspirated consonant, A is an aspirated one, V is a short vowel and L is a long vowel)

Maybe the functionality can be imitated with rewrite rules & illegal clusters, but it is obviously a bad approach

ItzShiney avatar May 15 '22 11:05 ItzShiney

For clarification, is this in the word generation section?

DraqueT avatar May 16 '22 23:05 DraqueT

Yes

ItzShiney avatar May 17 '22 09:05 ItzShiney

I am going to have to give this some thought. This module is a direct adaptation of the Zompist word generator, and a lot of users have expressed that they want to be able to copy/paste the patterns they use on that site into PolyGlot. This is absolutely one that I'm going to let stew in my brain for a bit though, it is a good idea, and if I'm careful about implementing it, I think I could add syntax that leaves Zompist functionality intact.

DraqueT avatar May 19 '22 16:05 DraqueT

Yeah, maybe two different tabs? One is current Word Generator, left unchanged, and one is Advanced Word Generator working like I described. The tabs share the Categories, Illegal Clusters and Rewrite Rules fields, but Advanced Word Generator has Word Types field instead of Syllable Types, and has none of these↓ settings image

ItzShiney avatar May 19 '22 20:05 ItzShiney