Skip to content

Instantly share code, notes, and snippets.

View ramachandrajr's full-sized avatar

Ramachandra Junior ramachandrajr

View GitHub Profile
@ramachandrajr
ramachandrajr / vowel_prob.py
Created March 21, 2018 20:31
Calculates vowel probabilities in a text
import re
import sys
yevgeny = ""
vowels_after_vowels = 0.0
vowels_after_consonants = 0.0
number_of_vowels = 0.0
vowels = [ "a", "e", "i", "o", "u", "A", "E", "I", "O", "U" ]