예제 #1
0
        /// <summary>
        /// Gets the part of speech associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The part of speech.</returns>
        public PartOfSpeech GetPOS(string id)
        {
            PartOfSpeech pos;

            if (m_pos.TryGetValue(id, out pos))
            {
                return(pos);
            }
            return(null);
        }
예제 #2
0
        /// <summary>
        /// Gets the allomorph associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The allomorph.</returns>
        public Allomorph GetAllomorph(string id)
        {
            Allomorph allomorph;

            if (m_allomorphs.TryGetValue(id, out allomorph))
            {
                return(allomorph);
            }
            return(null);
        }
예제 #3
0
        /// <summary>
        /// Gets the MPR feature group associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The MPR feature group.</returns>
        public MPRFeatureGroup GetMPRFeatureGroup(string id)
        {
            MPRFeatureGroup group;

            if (m_mprFeatGroups.TryGetValue(id, out group))
            {
                return(group);
            }
            return(null);
        }
예제 #4
0
        /// <summary>
        /// Gets the MPR feature associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The MPR feature.</returns>
        public MPRFeature GetMPRFeature(string id)
        {
            MPRFeature mprFeat;

            if (m_mprFeatures.TryGetValue(id, out mprFeat))
            {
                return(mprFeat);
            }
            return(null);
        }
예제 #5
0
        /// <summary>
        /// Gets the morphological rule associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The morphological rule.</returns>
        public MorphologicalRule GetMorphologicalRule(string id)
        {
            MorphologicalRule mrule;

            if (m_mrules.TryGetValue(id, out mrule))
            {
                return(mrule);
            }
            return(null);
        }
예제 #6
0
        /// <summary>
        /// Gets the affix template associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The affix template.</returns>
        public AffixTemplate GetAffixTemplate(string id)
        {
            AffixTemplate template;

            if (m_templates.TryGetValue(id, out template))
            {
                return(template);
            }
            return(null);
        }
예제 #7
0
        /// <summary>
        /// Gets the natural class associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The natural class.</returns>
        public NaturalClass GetNaturalClass(string id)
        {
            NaturalClass nc;

            if (m_natClasses.TryGetValue(id, out nc))
            {
                return(nc);
            }
            return(null);
        }
예제 #8
0
        /// <summary>
        /// Gets the phonological rule associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The phonological rule.</returns>
        public PhonologicalRule GetPhonologicalRule(string id)
        {
            PhonologicalRule prule;

            if (m_prules.TryGetValue(id, out prule))
            {
                return(prule);
            }
            return(null);
        }
예제 #9
0
        /// <summary>
        /// Gets the stratum associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The stratum.</returns>
        public Stratum GetStratum(string id)
        {
            Stratum stratum;

            if (m_strata.TryGetValue(id, out stratum))
            {
                return(stratum);
            }
            return(null);
        }
예제 #10
0
        /// <summary>
        /// Gets the character definition table associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The character definition table.</returns>
        public CharacterDefinitionTable GetCharacterDefinitionTable(string id)
        {
            CharacterDefinitionTable charDefTable;

            if (m_charDefTables.TryGetValue(id, out charDefTable))
            {
                return(charDefTable);
            }
            return(null);
        }
예제 #11
0
        /// <summary>
        /// Gets the morpher associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The morpher.</returns>
        public Morpher GetMorpher(string id)
        {
            Morpher morpher;

            if (m_morphers.TryGetValue(id, out morpher))
            {
                return(morpher);
            }
            return(null);
        }
예제 #12
0
        /// <summary>
        /// Gets the lexical family associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The lexical family.</returns>
        public LexFamily GetFamily(string id)
        {
            LexFamily family;

            if (m_families.TryGetValue(id, out family))
            {
                return(family);
            }
            return(null);
        }
예제 #13
0
        /// <summary>
        /// Gets the lexical entry associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The lexical entry.</returns>
        public LexEntry GetEntry(string id)
        {
            LexEntry entry;

            if (m_entries.TryGetValue(id, out entry))
            {
                return(entry);
            }
            return(null);
        }
예제 #14
0
        /// <summary>
        /// Gets the value associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The feature value.</returns>
        public FeatureValue GetPossibleValue(string id)
        {
            FeatureValue value;

            if (m_possibleValues.TryGetValue(id, out value))
            {
                return(value);
            }
            return(null);
        }
예제 #15
0
        /// <summary>
        /// Gets the feature associated with the specified ID.
        /// </summary>
        /// <param name="id">The ID.</param>
        /// <returns>The feature.</returns>
        public Feature GetFeature(string id)
        {
            Feature feature;

            if (m_features.TryGetValue(id, out feature))
            {
                return(feature);
            }
            return(null);
        }