Skip to content

Instantly share code, notes, and snippets.

@AnastasiaDunbar
Last active July 5, 2018 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnastasiaDunbar/858f9891a3e82aa4e7490411e5509f61 to your computer and use it in GitHub Desktop.
Save AnastasiaDunbar/858f9891a3e82aa4e7490411e5509f61 to your computer and use it in GitHub Desktop.
Just an alphabet.
var alphabet=[
{letter:"a",consonant:false},
{letter:"b",consonant:true},
{letter:"c",consonant:true},
{letter:"d",consonant:true},
{letter:"e",consonant:false},
{letter:"f",consonant:true},
{letter:"g",consonant:true},
{letter:"h",consonant:true},
{letter:"i",consonant:false},
{letter:"j",consonant:true},
{letter:"k",consonant:true},
{letter:"l",consonant:true},
{letter:"m",consonant:true},
{letter:"n",consonant:true},
{letter:"o",consonant:false},
{letter:"p",consonant:true},
{letter:"q",consonant:true},
{letter:"r",consonant:true},
{letter:"s",consonant:true},
{letter:"t",consonant:true},
{letter:"u",consonant:false},
{letter:"v",consonant:true},
{letter:"w",consonant:true},
{letter:"x",consonant:true},
{letter:"y",consonant:false},
{letter:"z",consonant:true}
];
@AnastasiaDunbar
Copy link
Author

I was using this for generating random strings, but this is incorrect because consonants vary a lot, if we were going to look for consonants then we should look it as a group of letters to confirm that which could be the correct way of doing it. I knew this but whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment