(in /Users/julia/linkparser-1.0.6) /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c dictionary.c /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c linkage.c /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c linkparser.c /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c parseoptions.c /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c sentence.c /usr/bin/gcc-4.2 -dynamic -bundle -undefined suppress -flat_namespace -o linkparser_ext.bundle dictionary.o linkage.o linkparser.o parseoptions.o sentence.o -L. -L/opt/local/lib -L. -L/opt/local/lib -arch x86_64 -lruby -llink-grammar -lpthread -ldl -lobjc bugfix for #3: The first linkage for "The cat runs." - thinks cat is the subject - thinks runs is the verb LinkParser::Dictionary - can be instantiated using all default values - can be instantiated with an options hash - raises an error when created with an bad number of arguments - can be instantiated with a language argument - can be instantiated with both a language and an options hash - raises an exception if created with unknown dictionaries - raises an exception if created with an unknown language LinkParser::Dictionary instance - knows what the total cost of its linkages are - can parse a sentence - passes on its options to the sentences it parses LinkParser::Linkage - can build a diagram string for a sentence - can build a 'links and domains' diagram - knows how many words are in the sentence - can return a list of the tokenized words (FAILED - 1) - knows how many links are in the sentence - can return the left word for any of its links (FAILED - 2) - can return the right word for any of its links (FAILED - 3) - can return the length of any of its links - can return labels for any of its links - can return left labels for any of its links - can return labels for any of its links - can return the number of domains for any link - can return the names of the domains of any of its links - can return the disjunct strings for any of its words - can return parsed disjuncts for any of its words - can report on the various cost metrics of the parse - implements Link Grammar predicate methods - contains link structs describing the linkage (FAILED - 4) - knows what word is the verb in the sentence (FAILED - 5) - knows when the sentence doesn't have a direct object - knows which of its words are nouns - returns an indented sexps for the constituent tree string by default (mode 1) - returns indented sexps for the constituent tree string if fetched with explicit mode '1' - returns bracketed constituents if constituent tree string is fetched in mode 2 - returns unindented sexps for the constituent tree string if constituent tree string is fetched in mode 3 - raises an exception for any numeric constituent tree string mode greater than 3 - raises an exception for any numeric constituent tree string mode less than 1 - raises an exception when a non-numeric constituent tree string mode is given - returns an Array of CTree structs for its constituent tree - returns 0 as the number of the current sublinkage since it has no conjunctions - returns an informational string when inspected - knows that it doesn't have any conjunctions - should know that it's not an imperative sentence LinkParser::Linkage from a simple sentence with a direct object - doesn't have any sublinkages - doesn't change after computing its union - knows what word is the object in the sentence (FAILED - 6) LinkParser::Linkage from a sentence with a conjunction - knows that it has a conjunction - has two sublinkages - adds a sublinkage after computing its union - knows what word is the verb in the current sublinkage (FAILED - 7) - knows what word is the object in the current sublinkage LinkParser::Linkage from an imperative sentence - knows that it's an imperative sentence LinkParser::Linkage bugfixes - also strips off the '.p' from the subject and object when they are plural LinkParser::ParseOptions - starts out with documented defaults - supports all the members mentioned in the documentation (PENDING: some of them aren't implemented in the link-grammar library) - knows whether the timer constraints were exceeded or not - knows whether the memory constraints were exceeded or not - knows whether the timer constraints were exceeded or not - can reset the resource constraints LinkParser::ParseOptions in versions of link-grammar >= 4.5.0 - knows whether spell_guessing is enabled or not LinkParser::Sentence - returns an informational string when inspected before it's been parsed - returns an informational string when inspected after it's been parsed - can return itself as a tokenized string - returns the linkage count as the result of parsing the sentence - accepts parse options when parsing - knows how many words are in it, including walls and punctuation - delegates linkage methods to its first linkage - knows whether or not it's been parsed - can return its linkages - can return words at a specified position - can return an Array of all tokenized words - knows that it doesn't have any superfluous words in it LinkParser::Sentence parsed from a sentence with a superfluous word in it - knows how many null links it has LinkParser::Sentence parsed from a sentence that yields no linkages - raises a descriptive exception if a delegated method is called LinkParser - knows what version of the link-grammar library it was built against Pending: LinkParser::ParseOptions supports all the members mentioned in the documentation (some of them aren't implemented in the link-grammar library) ./spec/linkparser/parseoptions_spec.rb:53 1) 'LinkParser::Linkage can return a list of the tokenized words' FAILED expected ["LEFT-WALL", "the", "flag.n", "was.v-d", "wet.a", ".", "RIGHT-WALL"] to include "was.v" ./spec/linkparser/linkage_spec.rb:87: 2) 'LinkParser::Linkage can return the left word for any of its links' FAILED expected: nil, got: 3 (using ==) ./spec/linkparser/linkage_spec.rb:113: 3) 'LinkParser::Linkage can return the right word for any of its links' FAILED expected: nil, got: 3 (using ==) ./spec/linkparser/linkage_spec.rb:131: 4) 'LinkParser::Linkage contains link structs describing the linkage' FAILED expected: "was.v", got: "was.v-d" (using ==) Diff: @@ -1,2 +1,2 @@ -was.v +was.v-d ./spec/linkparser/linkage_spec.rb:267: 5) 'LinkParser::Linkage knows what word is the verb in the sentence' FAILED expected: "was", got: "was.v-d" (using ==) Diff: @@ -1,2 +1,2 @@ -was +was.v-d ./spec/linkparser/linkage_spec.rb:273: 6) 'LinkParser::Linkage from a simple sentence with a direct object knows what word is the object in the sentence' FAILED expected: "home", got: nil (using ==) ./spec/linkparser/linkage_spec.rb:369: 7) 'LinkParser::Linkage from a sentence with a conjunction knows what word is the verb in the current sublinkage' FAILED expected: "rolled", got: "rolled.v-d" (using ==) Diff: @@ -1,2 +1,2 @@ -rolled +rolled.v-d ./spec/linkparser/linkage_spec.rb:405: Finished in 13.221071 seconds 77 examples, 7 failures, 1 pending