Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usc-054.idb8de713e-4368-11ef-91ba-f03f45d84bd5_2_1.pdf #140

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@

\documentclass[tikz,border=12pt]{standalone}
\usepackage[linguistics]{forest}
\usepackage{times}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{soul}
\usepackage[T1]{fontenc}
\usepackage{marvosym}

\definecolor{orange}{HTML}{FFCCFF}
\definecolor{ltyellow}{HTML}{FFFFAA}
\definecolor{cgelblue}{HTML}{009EE0}

% text highlight color
% https://tex.stackexchange.com/a/352959
\newcommand{\hlc}[2][yellow]{{%
\colorlet{foo}{#1}%
\sethlcolor{foo}\hl{#2}}%
}
\newcommand{\hlgreen}[2][green]{{%
\colorlet{foo}{#1}%
\sethlcolor{foo}\hl{#2}}%
}
\newcommand{\p}[1]{%
\sethlcolor{white}\color{gray}\hl{#1}%
}

\pagestyle{empty}
%----------------------------------------------------------------------
% Node labels in CGEL trees are defined with \Node,
% which is defined so that \Node{Abcd}{Xyz} yields
% a label with the function Abcd on the top, in small
% sanserif font, followed by a colon, and the category
% Xyz on the bottom.
\newcommand{\Node}[2]{\small\textsf{#1:}\\{#2}}
% For commonly used functions this is defined with \(function)
\newcommand{\Head}[1]{\Node{Head}{#1}}
\newcommand{\Subj}[1]{\Node{Subj}{#1}}
\newcommand{\Comp}[1]{\Node{Comp}{#1}}
\newcommand{\Mod}[1]{\Node{Mod}{#1}}
\newcommand{\Det}[1]{\Node{Det}{#1}}
\newcommand{\PredComp}[1]{\Node{PredComp}{#1}}
\newcommand{\Crd}[1]{\Node{Coordinate}{#1}}
\newcommand{\Mk}[1]{\Node{Marker}{#1}}
\newcommand{\Obj}[1]{\Node{Obj}{#1}}
\newcommand{\Sup}[1]{\Node{Supplement}{#1}}
\newcommand{\idx}[1]{\textsubscript{\fcolorbox{red}{white}{\textcolor{red}{#1}}}}
%----------------------------------------------------------------------
\begin{document}

% # sent_id = usc-054.idb8de713e-4368-11ef-91ba-f03f45d84bd5_2_1
% # text = To the maximum extent practicable, through the establishment of cofunding requirements applicable to each project, the costs of such activities shall be provided, in part, through contributions of cash, personnel, services, equipment, and other resources, by sources other than the recovery of expenses pursuant to this section.
% # sent = to the maximum extent practicable through the establishment of cofunding requirements applicable to each project the costs of such activities shall be provided in part through contributions of cash personnel services equipment and other resources by sources other than the recovery of expenses pursuant to this section
% # tree_by = bwaldon (2025-02-18)

\begin{forest}
where n children=0{% for each terminal node
font=\sffamily,
fill=ltyellow,
%tier=word % align at the "word" tier (bottom)
}{% % no false conditions, so empty
},
[Clause
[\Node{Mod}{PP}
[\Node{Head}{P},edge={line width=1pt}[to]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[the]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{Nom}
[\Node{Head}{N},edge={line width=1pt}[maximum]]]
[\Node{Head}{N},edge={line width=1pt}[extent]]]
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[practicable,label={right:\p{{,}}}]]]]]]
[\Node{Head}{Clause},edge={line width=1pt}
[\Node{Mod}{PP}
[\Node{Head}{P},edge={line width=1pt}[through]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[the]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[establishment]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{Nom}
[\Node{Head}{N},edge={line width=1pt}[cofunding]]]
[\Node{Head}{N},edge={line width=1pt}[requirements]]]
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[applicable]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[to]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[each]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[project,label={right:\p{{,}}}]]]]]]]]]]]]
[\Node{Head}{Clause},edge={line width=1pt}
[\Node{Subj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[the]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[costs]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[such]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[activities]]]]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[shall]]
[\Node{Comp}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[be]]
[\Node{Comp}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[provided,label={right:\p{{,}}}]]
[\Node{Supplement}{PP}
[\Node{Head}{P},edge={line width=1pt}[in]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[part,label={right:\p{{,}}}]]]]]
[\Node{Mod}{PP}
[\Node{Head}{P},edge={line width=1pt}[through]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[contributions]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{Coordination}
[\Node{Coordinate}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[cash,label={right:\p{{,}}}]]]]
[\Node{Coordinate}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[personnel,label={right:\p{{,}}}]]]]
[\Node{Coordinate}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[services,label={right:\p{{,}}}]]]]
[\Node{Coordinate}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[equipment,label={right:\p{{,}}}]]]]
[\Node{Coordinate}{NP}
[\Node{Marker}{Coordinator}[and]]
[\Node{Head}{NP},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[other]]]
[\Node{Head}{N},edge={line width=1pt}[resources,label={right:\p{{,}}}]]]]]]]]]]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[by]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[sources]]
[\Node{Mod}{PP}
[\Node{Head}{P} \hlgreen{\Info},edge={line width=1pt}[other than]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[the]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[recovery]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[expenses]]
[\Node{Mod}{PP}
[\Node{Head}{P} \hlgreen{\Info},edge={line width=1pt}[pursuant]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[to]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[this]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[section,label={right:\p{.}}]]]]]]]]]]]]]]]]]]]]]]]
\node at (current bounding box.south)[yshift=-1cm]{
(1) compound preposition{,} CGEL p. 1145; (2) {[}AMBIG{]} are the expenses pursuant to this section (this attachment){,} or is their recovery (higher attachment)? -- 'pursuant' is preposition (CGEL p. 639)};
\end{forest}


\end{document}

Original file line number Diff line number Diff line change
@@ -1,4 +1,122 @@
# sent_id = usc-054.idb8de713e-4368-11ef-91ba-f03f45d84bd5_2_1
# text = To the maximum extent practicable, through the establishment of cofunding requirements applicable to each project, the costs of such activities shall be provided, in part, through contributions of cash, personnel, services, equipment, and other resources, by sources other than the recovery of expenses pursuant to this section.
# sent = to the maximum extent practicable through the establishment of cofunding requirements applicable to each project the costs of such activities shall be provided in part through contributions of cash personnel services equipment and other resources by sources other than the recovery of expenses pursuant to this section
# tree_by = NOT_ASSIGNED (YYYY-MM-DD)
# tree_by = bwaldon (2025-02-18)
(Clause
:Mod (PP
:Head (P :t "to")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (Nom
:Mod (Nom
:Head (N :t "maximum"))
:Head (N :t "extent"))
:Mod (AdjP
:Head (Adj :t "practicable" :p ",")))))
:Head (Clause
:Mod (PP
:Head (P :t "through")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "establishment")
:Comp (PP
:Head (P :t "of")
:Obj (NP
:Head (Nom
:Head (Nom
:Mod (Nom
:Head (N :t "cofunding"))
:Head (N :t "requirements" :l "requirement"))
:Mod (AdjP
:Head (Adj :t "applicable")
:Comp (PP
:Head (P :t "to")
:Obj (NP
:Det (DP
:Head (D :t "each"))
:Head (Nom
:Head (N :t "project" :p ",")))))))))))
:Head (Clause
:Subj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "costs" :l "cost")
:Comp (PP
:Head (P :t "of")
:Obj (NP
:Det (DP
:Head (D :t "such"))
:Head (Nom
:Head (N :t "activities" :l "activity"))))))
:Head (VP
:Head (V_aux :t "shall" :xpos "MD")
:Comp (Clause
:Head (VP
:Head (V_aux :t "be" :xpos "VB")
:Comp (Clause
:Head (VP
:Head (VP
:Head (V :t "provided" :l "provide" :xpos "VBN" :p ",")
:Supplement (PP
:Head (P :t "in")
:Obj (NP
:Head (Nom
:Head (N :t "part" :p ","))))
:Mod (PP
:Head (P :t "through")
:Obj (NP
:Head (Nom
:Head (N :t "contributions" :l "contribution")
:Comp (PP
:Head (P :t "of")
:Obj (Coordination
:Coordinate (NP
:Head (Nom
:Head (N :t "cash" :p ",")))
:Coordinate (NP
:Head (Nom
:Head (N :t "personnel" :p ",")))
:Coordinate (NP
:Head (Nom
:Head (N :t "services" :l "service" :p ",")))
:Coordinate (NP
:Head (Nom
:Head (N :t "equipment" :p ",")))
:Coordinate (NP
:Marker (Coordinator :t "and")
:Head (NP
:Head (Nom
:Mod (AdjP
:Head (Adj :t "other"))
:Head (N :t "resources" :l "resource" :p ","))))))))))
:Comp (PP
:Head (P :t "by")
:Obj (NP
:Head (Nom
:Head (N :t "sources" :l "source")
:Mod (PP
:Head (P :t "other than" :note "compound preposition, CGEL p. 1145")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "recovery")
:Comp (PP
:Head (P :t "of")
:Obj (NP
:Head (Nom
:Head (N :t "expenses" :l "expense")
:Mod (PP
:Head (P :t "pursuant" :note "[AMBIG] are the expenses pursuant to this section (this attachment), or is their recovery (higher attachment)? -- 'pursuant' is preposition (CGEL p. 639)")
:Comp (PP
:Head (P :t "to")
:Obj (NP
:Det (DP
:Head (D :t "this"))
:Head (Nom
:Head (N :t "section" :p "."))))))))))))))))))))))