ABB.Swum.WordData.PCKimmoPartOfSpeechData.IsVerbParticle C# (CSharp) Method

IsVerbParticle() public method

Indicates whether the given word is a verb particle. For example, in "pick up", "pick" is a verb and "up" is a verb particle.
public IsVerbParticle ( string verb, string word ) : bool
verb string The verb to test the particle against.
word string The potential particle.
return bool
        public override bool IsVerbParticle(string verb, string word)
        {
            string lowerWord = word.ToLower();
            return VerbParticles.ContainsKey(lowerWord) && VerbParticles[lowerWord].Contains(verb.ToLower());
        }