Метод | Описание | |
---|---|---|
InClass ( |
Determines whether the given node satisfies this rule. ** Note that calling this method has the effect of stripping any preamble from the given node, and tagging any digits and prepositions. **
|
|
UnigramMethodRule ( ) : System |
Creates a new UnigramMethodRule using default values for data sets.
|
|
UnigramMethodRule ( HashSet |
Creates a new UnigramMethodRule.
|
|
UnigramMethodRule ( |
Creates a new UnigramMethodRule.
|
|
UnigramMethodRule ( |
Creates a new UnigramMethodRule.
|
Метод | Описание | |
---|---|---|
IsChecker ( string word ) : bool |
Determines whether the given word indicates a checker method.
|
|
IsEventHandler ( IEnumerable |
Determines whether a method is an event handler based upon its formal parameters.
|
|
IsEventHandler ( |
Determines whether the given phrase indicates an event handler method.
|
|
IsNonBaseVerb ( string word ) : bool |
Determines whether the given word is a non-base verb, i.e. present/past participle or past tense.
|
|
IsSpecialCase ( string word ) : bool |
Determines whether the given word indicates a method that needs special handling.
|
|
MakeClassification ( |
Performs further rule testing beyond the InClass method. InClass tests whether the node is a MethodDeclarationNode, parses the node name, strips the preamble, tags digits and prepositions, then calls this method.
|
|
ParseBaseVerbName ( |
Assigns part-of-speech tags to the words in the given MethodDeclarationNode's name, assuming that it follows a base verb pattern. This assumes that the node has already had its name split and preamble stripped.
|
|
ParseReactiveName ( |
Assigns part-of-speech tags, and sets Action, Theme and Arguments for methods that have a reactive name.
|
|
SetDefaultActionAndTheme ( |
Sets the Action and Theme properties of the given MethodDeclarationNode using the default algorithms. This also sets the node's SecondaryArguments and UnknownArguments properties.
|
|
SetDefaultUnknownArguments ( |
Sets the UnknownArguments list to its default state. This includes all the formal parameters, the declaring class, and the return type (if not primitive).
|
|
StartsNounPhrase ( string word ) : bool |
Determines whether the given word indicates the beginning of a noun phrase.
|
Метод | Описание | |
---|---|---|
CheckForIgnorableVerb ( |
Determines whether the specified word in the given phrase is an ignorable verb. If so, it tags it appropriately.
|
|
CheckOverlap ( |
Checks for semantic overlaps between parts of the given method's name and its UnknownArguments. If overlaps are found, appropriate EquivalenceNodes are created.
|
|
FindFirstPreposition ( |
Finds the index of the first preposition within the given PhraseNode, starting from the word indicated by startIndex.
|
|
GetNounPhrase ( |
Returns a PhraseNode containing the noun phrase words from the given name. All noun phrase words prior to the first preposition are included.
|
|
GetNounPhrase ( |
Returns a PhraseNode containing the noun phrase words from the given name, starting from startIndex. All noun phrase words prior to the first encountered preposition are included.
|
|
GetVerbPhrase ( |
Finds all the verbs in the given name and adds them to the given preamble.
|
|
HasOverlap ( |
Determines whether the given PhraseNode overlaps with the given word. The two overlap if the last word of the phrase is the same as the given word, or if the second-to-last word of the phrase is the same as the given word and the last word of the phrase is ignorable.
|
|
InitializeMembers ( ) : void |
Sets the member data sets to their default states.
|
|
SetPrepositionThemeAndArguments ( |
Sets the Theme, SecondaryArguments and UnknownArguments properties of the given MethodDeclarationNode.
|
public InClass ( |
||
node | The node to test. | |
Результат | bool |
protected IsChecker ( string word ) : bool | ||
word | string | The word to test. |
Результат | bool |
protected IsEventHandler ( IEnumerable |
||
formalParameters | IEnumerable |
The formal parameters to test. |
Результат | bool |
protected IsEventHandler ( |
||
parsedName | The PhraseNode to test. | |
Результат | bool |
protected IsNonBaseVerb ( string word ) : bool | ||
word | string | The word to test. |
Результат | bool |
protected IsSpecialCase ( string word ) : bool | ||
word | string | The word to test. |
Результат | bool |
protected abstract MakeClassification ( |
||
node | The MethodDeclarationNode to test. | |
Результат | bool |
protected ParseBaseVerbName ( |
||
node | The MethodDeclarationNode to tag. | |
Результат | void |
protected ParseReactiveName ( |
||
mdn | The MethodDeclarationNode to parse. | |
Результат | void |
protected SetDefaultActionAndTheme ( |
||
node | The MethodDeclarationNode to set the Action and Theme on. | |
Результат | void |
protected SetDefaultUnknownArguments ( |
||
mdn | The MethodDeclarationNode to set UnknownArguments on. | |
Результат | void |
protected StartsNounPhrase ( string word ) : bool | ||
word | string | The word to test. |
Результат | bool |
public UnigramMethodRule ( HashSet |
||
specialWords | HashSet |
A list of words that indicate the method name needs special handling. |
booleanArgumentVerbs | HashSet |
A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list. |
nounPhraseIndicators | HashSet |
A list of word that indicate that beginning of a noun phrase. |
positionalFrequencies | Positional frequency data. | |
Результат | System |
public UnigramMethodRule ( |
||
posData | The part-of-speech data to use. | |
tagger | The part-of-speech tagger to use. | |
splitter | The identifier splitter to use. | |
Результат | System |
public UnigramMethodRule ( |
||
posData | The part-of-speech data to use. | |
tagger | The part-of-speech tagger to use. | |
splitter | The identifier splitter to use. | |
specialWords | HashSet |
A list of words that indicate the method name needs special handling. |
booleanArgumentVerbs | HashSet |
A list of verbs that indicate that the boolean arguments to a method should be included in the UnknownArguments list. |
nounPhraseIndicators | HashSet |
A list of word that indicate that beginning of a noun phrase. |
positionalFrequencies | Positional frequency data. | |
Результат | System |