jeffrey-sardina / wordgen Goto Github PK
View Code? Open in Web Editor NEWTool for generating words for inventing languages based on a set of phonotactic rules.
Tool for generating words for inventing languages based on a set of phonotactic rules.
This program uses a phonetics.csv file to defined the phonetic rules of the language for which to generate words. This phoneitcs file should have the following elements: consonants,<consonants> vowels,<vowels> dipthongs,<dipthongs> codas,<codas> coda_clusters,<coda_clusters> onset_clusters,<onset_clusters> syllable_structures,<syllable_structures> use # to comment out a line--the whole line is ignored regarless of there # is placed! ex #Basic sounds consonants,f,v,s,z,p,t,j,w,l,r,h,t,d,m,n vowels,a,e,i,o,u dipthongs,ai,eu #clusters and codas codas,s,z,f coda_clusters,st,rl onset_clusters,ts,lr,dz #syllable structure patterns syllable_structures,v,cv,cvc,ccvc,ccvcc,cvcc usage form: python wordgen.py <*num_words> <*num_syllables_per_word> <*phonotactics_file> elements listed above are required to run the program, the rest shown here are optional customizations <num_words> is the number of words to generate. Enter 0 to generate all possible words (no repeats) <num_syllables_per_word> is the number of syllables each word will have y<phonotactics_file> type -in:FILE_NAME to specify the file containing phonotactic data for word generation <output_file> type -out:FILE_NAME to specify an output file. If none is given words will be printed to the terminal <allow_clusters> type -nocluster to indicate that no consonant clusters are allowed <allow_dipthongs> type -nodip to indicate that no dipthongs are allowed <allow_codas> type -nocoda to ban coda consonants <allow_onsets> type -noonset to ban onset consonants <allow_coda_clusters> type -nocodac to ban coda clusters <allow_onset_clusters> type -noonsetc to ban onset clusters <allow_repeats> type -noreps to ban repeat word generation ex: python wordgen.py 50 2 -nocluster python wordgen.py 23 3 -nodip python wordgen.py 16 1 python wordgen.py 38 4 -nocluster -nodip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.