1 using System.Collections.Generic;
13 public string Text {
get;
set; }
16 public string PlainText {
get;
set; }
22 public List<string> Verbs {
get;
set; }
23 public List<string> Nouns {
get;
set; }
26 public float AverageForSentence {
get;
set; }
29 public float AverageWordLength {
get;
set; }
30 public float SentenceLength {
get;
set; }
31 public float VocabularyComplexity {
get;
set; }
32 public float NounToVerbRatio {
get;
set; }
33 public float SentenceStructureComplexity {
get;
set; }
44 s +=
"Average for Sentence: " + AverageForSentence +
"\n\n";
46 s +=
"Average Word Length: " + AverageWordLength +
"\n";
47 s +=
"Vocabulary Complexity: " + VocabularyComplexity +
"\n";
48 s +=
"Noun to Verb Ratio: " + NounToVerbRatio +
"\n";
49 s +=
"Sentence Length: " + SentenceLength +
"\n";
50 s +=
"Sentence Structure Complexity: " + SentenceStructureComplexity;
62 s +=
string.Format(
"Average for Sentence: {0:0.00}\\textCR\\textCR ", AverageForSentence);
65 s +=
string.Format(
"Average Word Length: {0:0.00}\\textCR ", AverageWordLength);
66 s +=
string.Format(
"Vocabulary Complexity: {0:0.00}\\textCR ", VocabularyComplexity);
67 s +=
string.Format(
"Noun to Verb Ratio: {0:0.00}\\textCR ", NounToVerbRatio);
68 s +=
string.Format(
"Sentence Length: {0:0.00}\\textCR ", SentenceLength);
69 s +=
string.Format(
"Sentence Structure Complexity: {0:0.00}", SentenceStructureComplexity);
string GenerateComment()
Generates a string representation of the sentence to display it as comment.
override string ToString()
Generates a string representation of the sentence.