Beispiel #1
0
 public static string GetDescription(ITagset t)
 {
     if (t == null)
         return null;
     var tsTypeName = t.GetType().Name;
     switch (tsTypeName)
     {
         case "SentenceBreakPunctuation":
             return ". ! or ?";
         case "Comma":
             return "a comma";
         case "CoordinatingConjunction":
             return "e.g. and,but,or...";
         case "CardinalNumber":
             return "e.g. 1, third";
         case "Determiner":
             return "e.g. the";
         case "ExistentialThere":
             return "e.g. there is";
         case "ForeignWord":
             return "e.g. d'hoevre";
         case "PreposisionOrSubordinatingConjunction":
             return "e.g. in, of, like";
         case "Adjective":
             return "e.g. green";
         case "AdjectiveComparative":
             return "e.g. greener";
         case "AdjectiveSuperlative":
             return "e.g. greenest";
         case "ListItemMarker":
             return "e.g. 1.)";
         case "Modal":
             return "denoting the mood of a verb, e.g. can, could, might, may...";
         case "NounSingularOrMass":
             return "e.g. table";
         case "ProperNounSingular":
             return "e.g. Beth";
         case "ProperNounPlural":
             return "e.g. Romans";
         case "NounPlural":
             return "e.g. tables";
         case "Predeterminer":
             return "e.g. all, both ... when they precede an article";
         case "PossessiveEnding":
             return "e.g. Nouns ending in 's";
         case "PersonalPronoun":
             return "e.g. I, me, you, he...";
         case "PossessivePronoun":
             return "e.g. my, your, mine, yours...";
         case "Adverb":
             return "Most words that end in -ly as well as degree words like quite, too and very";
         case "AdverbComparative":
             return "Adverbs with the comparative ending -er, with a strictly comparative meaning.";
         case "AdverbSuperlative":
             return "e.g. best";
         case "Particle":
             return "e.g. give up";
         case "Symbol":
             return "Should be used for mathematical, scientific or technical symbols";
         case "To":
             return "to";
         case "Interjection":
             return "e.g. uh, well, yes, my...";
         case "VerbBaseForm":
             return "subsumes imperatives, infinitives and subjunctives; e.g. be";
         case "VerbPastTense":
             return "includes the conditional form of the verb to be; e.g. was, were";
         case "VerbGerundOrPersentParticiple":
             return "e.g. being";
         case "VerbPastParticiple":
             return "e.g. been";
         case "VerbNon3rdPersonSingularPresent":
             return "e.g. am, are";
         case "Verb3rdPersonSingularPresent":
             return "e.g. is";
         case "Wh_Determiner":
             return "e.g. which, and that when it is used as a relative pronoun";
         case "Wh_Pronoun":
             return "e.g. what, who, whom...";
         case "PossessiveWh_pronoun":
             return "e.g. whose";
         case "Wh_Adverb":
             return "e.g. how, where, when, why";
         default:
             return null;
     }
 }
Beispiel #2
0
        public static string GetDescription(ITagset t)
        {
            if (t == null)
            {
                return(null);
            }
            var tsTypeName = t.GetType().Name;

            switch (tsTypeName)
            {
            case "SentenceBreakPunctuation":
                return(". ! or ?");

            case "Comma":
                return("a comma");

            case "CoordinatingConjunction":
                return("e.g. and,but,or...");

            case "CardinalNumber":
                return("e.g. 1, third");

            case "Determiner":
                return("e.g. the");

            case "ExistentialThere":
                return("e.g. there is");

            case "ForeignWord":
                return("e.g. d'hoevre");

            case "PreposisionOrSubordinatingConjunction":
                return("e.g. in, of, like");

            case "Adjective":
                return("e.g. green");

            case "AdjectiveComparative":
                return("e.g. greener");

            case "AdjectiveSuperlative":
                return("e.g. greenest");

            case "ListItemMarker":
                return("e.g. 1.)");

            case "Modal":
                return("denoting the mood of a verb, e.g. can, could, might, may...");

            case "NounSingularOrMass":
                return("e.g. table");

            case "ProperNounSingular":
                return("e.g. Beth");

            case "ProperNounPlural":
                return("e.g. Romans");

            case "NounPlural":
                return("e.g. tables");

            case "Predeterminer":
                return("e.g. all, both ... when they precede an article");

            case "PossessiveEnding":
                return("e.g. Nouns ending in 's");

            case "PersonalPronoun":
                return("e.g. I, me, you, he...");

            case "PossessivePronoun":
                return("e.g. my, your, mine, yours...");

            case "Adverb":
                return("Most words that end in -ly as well as degree words like quite, too and very");

            case "AdverbComparative":
                return("Adverbs with the comparative ending -er, with a strictly comparative meaning.");

            case "AdverbSuperlative":
                return("e.g. best");

            case "Particle":
                return("e.g. give up");

            case "Symbol":
                return("Should be used for mathematical, scientific or technical symbols");

            case "To":
                return("to");

            case "Interjection":
                return("e.g. uh, well, yes, my...");

            case "VerbBaseForm":
                return("subsumes imperatives, infinitives and subjunctives; e.g. be");

            case "VerbPastTense":
                return("includes the conditional form of the verb to be; e.g. was, were");

            case "VerbGerundOrPersentParticiple":
                return("e.g. being");

            case "VerbPastParticiple":
                return("e.g. been");

            case "VerbNon3rdPersonSingularPresent":
                return("e.g. am, are");

            case "Verb3rdPersonSingularPresent":
                return("e.g. is");

            case "Wh_Determiner":
                return("e.g. which, and that when it is used as a relative pronoun");

            case "Wh_Pronoun":
                return("e.g. what, who, whom...");

            case "PossessiveWh_pronoun":
                return("e.g. whose");

            case "Wh_Adverb":
                return("e.g. how, where, when, why");

            default:
                return(null);
            }
        }