Add PCFG and ParseTree to core; implement weighting and word similarity calculations; finish core specs.