public string DetectLanguage() { string allLines = Lines.Select(a => a.Line).Aggregate((a, b) => a + "\n" + b); string lang = _translator.DetectLanguage(allLines.Substring(0, 100)); return(lang); }