using System.Collections.Generic;
using System.Text.RegularExpressions;
public static string TranslateWord(string word)
Regex vowels = new Regex(@"[aeiouAEIOU]", RegexOptions.IgnoreCase);
int test = vowels.Match(word).Index;
public static string TranslateSentence(string sentence)
string[] x = sentence.Split();
List<string> fin = new List<string>{};
for(int i = 0; i < x.Length; i++) fin.Add(TranslateWord(x[i]));
StringBuilder sb = new StringBuilder();
foreach(string s in fin) sb.Append(s + " ");
public static void Main()
Console.WriteLine(TranslateWord("cramming"));