Leaving the British official who twice searched his luggage none the wiser, he managed by meticulous observation to memorize the principal features of the power loom well enough to produce his own version of it on his return to Boston.
( ( Leaving ( ( the ( British official ) ) ( who ( twice ( searched ( ( his ( luggage none ) ) ( the wiser ) ) ) ) ) ) ) ( , ( he ( ( ( managed ( by ( meticulous observation ) ) ) ( to ( memorize ( ( ( the ( principal features ) ) ( of ( the power ) ) ) ( ( loom ( well enough ) ) ( to ( ( ( produce ( ( his ( own version ) ) ( of it ) ) ) ( on ( his return ) ) ) ( to Boston ) ) ) ) ) ) ) ) . ) ) ) )
(ROOT (S (S (VP (VBG Leaving) (NP (NP (DT the) (JJ British) (NN official)) (SBAR (WHNP (WP who)) (S (ADVP (RB twice)) (VP (VBD searched) (NP (NP (PRP$ his) (JJ luggage) (NN none)) (ADJP (DT the) (JJR wiser))))))))) (, ,) (NP (PRP he)) (VP (VBD managed) (PP (IN by) (NP (JJ meticulous) (NN observation))) (S (VP (TO to) (VP (VB memorize) (S (NP (NP (DT the) (JJ principal) (NNS features)) (PP (IN of) (NP (DT the) (NN power)))) (VP (VB loom) (ADVP (RB well) (RB enough)) (S (VP (TO to) (VP (VB produce) (NP (NP (PRP$ his) (JJ own) (NN version)) (PP (IN of) (NP (PRP it)))) (PP (IN on) (NP (PRP$ his) (NN return))) (PP (TO to) (NP (NNP Boston)))))))))))) (. .)))
He successfully reproduced the power loom by recalling the main functions he had learnt by heart.
( He ( successfully ( ( reproduced ( ( the power ) ( loom ( by ( recalling ( ( the ( main functions ) ) ( he ( had ( learnt ( by heart ) ) ) ) ) ) ) ) ) ) . ) ) )
(ROOT (S (NP (PRP He)) (ADVP (RB successfully)) (VP (VBD reproduced) (S (NP (DT the) (NN power)) (VP (VB loom) (PP (IN by) (S (VP (VBG recalling) (NP (NP (DT the) (JJ main) (NNS functions)) (SBAR (S (NP (PRP he)) (VP (VBD had) (VP (VBN learnt) (PP (IN by) (NP (NN heart)))))))))))))) (. .)))