示例#1
0
        static void Main(string[] args)
        {
            var version = Assembly.GetEntryAssembly().GetName().Version;
            var lg      = new LanguageGenerator(version, seed: new Random().Next());

            lg.AddLanguage(ReferenceLanguage.BuildFrom("lang/hebrew.txt"));
            lg.AddLanguage(ReferenceLanguage.BuildFrom("lang/chinese.txt"));
            lg.SetDictionary(WordDictionary.BuildFrom("words/wordsEn.txt"));

            Console.WriteLine("Generating...");
            var ol = lg.Generate();

            ol.WriteToFile(lg);
            Console.WriteLine("Done!");
        }
示例#2
0
 public void AddLanguage(ReferenceLanguage lang)
 {
     references.Add(lang);
 }