rankBySubcommands object | parser.t[6000]

Command ranking by subcommand count: we prefer the match with fewer subcommands. If one has fewer subcommands than the other, it means that we were able to interpret ambiguous conjunctions (such as "and") as noun phrase conjunctions rather than as command conjunctions; other things being equal, we'd rather take the interpretation that gives us noun phrases than the one that involves more separate commands.

`rankBySubcommands : CommandRankingCriterion`

Superclass Tree (in declaration order)

`rankBySubcommands`
`CommandRankingCriterion`
`object`

Summary of Properties

``

``

(none)

Summary of Methods

`comparePass1`

Inherited from `CommandRankingCriterion` :
`comparePass2`

Properties

(none)

Methods

`comparePass1 (a, b)`OVERRIDDEN | `parser.t[6002]`

first pass - compare subcommand counts

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2