CCGweb
About
Manual
Download
Privacy Policy
Sign in
Sentence
ara
bul
dan
eng
est
deu
fra
hin
ind
ita
kan
ltz
mar
nld
pol
por
ron
rus
spa
srp
tur
urd
vie
Go
Parse
auto
visual
HTML
LaTeX
The
NP/N
foreigner
N
NP
>
0
speaks
(S[dcl]\NP)/NP
Japanese
N
NP
*
S[dcl]\NP
>
0
as
((S\NP)\(S\NP))/S[poss]
if
S[poss]/S[dcl]
it
NP
were
(S[dcl]\NP)/NP
his
NP/(N/PP)
native
N/N
language
N/PP
.
.
N/PP
.
N/PP
>
1
NP
>
0
S[dcl]\NP
>
0
S[dcl]
<
0
S[poss]
>
0
(S\NP)\(S\NP)
>
0
S[dcl]\NP
<
0
S[dcl]
<
0
<div class="der"> <table class="constituent binaryrule" data-cat="S[dcl]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent binaryrule" data-cat="NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="The" data-from="0" data-to="3" data-cat="NP/N"> <tr><td class="token">The</td></tr> <tr><td class="cat" tabindex="0">NP/N</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent lex" data-token="foreigner" data-from="4" data-to="13" data-cat="N"> <tr><td class="token">foreigner</td></tr> <tr><td class="cat" tabindex="0">N</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent binaryrule" data-cat="S[dcl]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="speaks" data-from="14" data-to="20" data-cat="(S[dcl]\NP)/NP"> <tr><td class="token">speaks</td></tr> <tr><td class="cat" tabindex="0">(S[dcl]\NP)/NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent unaryrule" data-cat="NP"> <tr class="daughters"><td class="daughter daughter-only"><table class="constituent lex" data-token="Japanese" data-from="21" data-to="29" data-cat="N"> <tr><td class="token">Japanese</td></tr> <tr><td class="cat" tabindex="0">N</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td></tr> <tr><td class="rulecat"><div class="rulecat"> <div class="cat">NP</div> <div class="rule" title="Type Changing"> * </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="(S\NP)\(S\NP)"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="as" data-from="30" data-to="32" data-cat="((S\NP)\(S\NP))/S[poss]"> <tr><td class="token">as</td></tr> <tr><td class="cat" tabindex="0">((S\NP)\(S\NP))/S[poss]</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[poss]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="if" data-from="33" data-to="35" data-cat="S[poss]/S[dcl]"> <tr><td class="token">if</td></tr> <tr><td class="cat" tabindex="0">S[poss]/S[dcl]</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="it" data-from="36" data-to="38" data-cat="NP"> <tr><td class="token">it</td></tr> <tr><td class="cat" tabindex="0">NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="were" data-from="39" data-to="43" data-cat="(S[dcl]\NP)/NP"> <tr><td class="token">were</td></tr> <tr><td class="cat" tabindex="0">(S[dcl]\NP)/NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="his" data-from="44" data-to="47" data-cat="NP/(N/PP)"> <tr><td class="token">his</td></tr> <tr><td class="cat" tabindex="0">NP/(N/PP)</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="N/PP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="native" data-from="48" data-to="54" data-cat="N/N"> <tr><td class="token">native</td></tr> <tr><td class="cat" tabindex="0">N/N</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="N/PP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="language" data-from="55" data-to="63" data-cat="N/PP"> <tr><td class="token">language</td></tr> <tr><td class="cat" tabindex="0">N/PP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent lex" data-token="." data-from="63" data-to="64" data-cat="."> <tr><td class="token">.</td></tr> <tr><td class="cat" tabindex="0">.</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">N/PP</div> <div class="rule" title="Remove Punctuation">.</div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">N/PP</div> <div class="rule" title="Forward Composition">> <sup>1</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]</div> <div class="rule" title="Backward Application">< <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[poss]</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">(S\NP)\(S\NP)</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]\NP</div> <div class="rule" title="Backward Application">< <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]</div> <div class="rule" title="Backward Application">< <sup>0</sup> </div> </div></td></tr> </table> </div>
Use with
der.css
.
\begin{tikzpicture}[ampersand replacement=\&] \matrix [column sep=9pt] at (0, 0) { \lexnode*{idm13}{The}{\catNP/\catN}{} \& \lexnode*{idm23}{foreigner}{\catN}{} \& \lexnode*{idm45}{speaks}{(\catS[dcl]\?\catNP)/\catNP}{} \& \lexnode*{idm60}{Japanese}{\catN}{} \& \lexnode*{idm79}{as}{((\catS\?\catNP)\?(\catS\?\catNP))/\catS[poss]}{} \& \lexnode*{idm100}{if}{\catS[poss]/\catS[dcl]}{} \& \lexnode*{idm115}{it}{\catNP}{} \& \lexnode*{idm130}{were}{(\catS[dcl]\?\catNP)/\catNP}{} \& \lexnode*{idm147}{his}{\catNP/(\catN/\catPP)}{} \& \lexnode*{idm166}{native}{\catN/\catN}{} \& \lexnode*{idm183}{language}{\catN/\catPP}{} \& \lexnode*{idm193}{.}{\cat.}{} \\ }; \binnode*{idm8}{idm13-cat}{idm23-cat}{\FC{0}}{\catNP}{} \unnode*{idm57}{idm60-cat}{*}{\catNP}{} \binnode*{idm38}{idm45-cat}{idm57}{\FC{0}}{\catS[dcl]\?\catNP}{} \binnode*{idm176}{idm183-cat}{idm193-cat}{.}{\catN/\catPP}{} \binnode*{idm159}{idm166-cat}{idm176}{\FC{1}}{\catN/\catPP}{} \binnode*{idm142}{idm147-cat}{idm159}{\FC{0}}{\catNP}{} \binnode*{idm123}{idm130-cat}{idm142}{\FC{0}}{\catS[dcl]\?\catNP}{} \binnode*{idm110}{idm115-cat}{idm123}{\BC{0}}{\catS[dcl]}{} \binnode*{idm95}{idm100-cat}{idm110}{\FC{0}}{\catS[poss]}{} \binnode*{idm68}{idm79-cat}{idm95}{\FC{0}}{(\catS\?\catNP)\?(\catS\?\catNP)}{} \binnode*{idm31}{idm38}{idm68}{\BC{0}}{\catS[dcl]\?\catNP}{} \binnode*{idm3}{idm8}{idm31}{\BC{0}}{\catS[dcl]}{} \end{tikzpicture}
Use with
ccgsym.sty
and
tikzlibraryccgder.code.tex
.
Translations
fra
L'étranger parle le japonais comme si c'était sa langue natale.
nld
De vreemdeling spreekt Japans alsof het zijn moedertaal was.
por
O estrangeiro fala japonês como se fosse sua língua nativa.
rus
Этот иностранец владеет японским языком на уровне родного.
spa
El extranjero habla japonés como si fuera su lengua nativa.