Giter Site home page Giter Site logo

wordgen's Introduction

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

wordgen's People

Contributors

jeffrey-sardina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.