static char sccsid
[] = "@(#)outp.c 4.2 (Berkeley) 82/11/06";
"noun", "verb", "interjection", "adjective", "adverb", "conjunction", "possessive",
"pronoun", "article", "preposition", "auxiliary", "tobe", "", "subordinate conjunction", "expletive"
int nn
, sc
, f
, kk
,comp
, begsc
;
int conjf
, verbf
,lpas
,bflg
,lexp
,olvb
;
for(sentp
=sent
;sentp
->cc
!= END
;sentp
++)
printf("%s %c %c\n",sentp
->sp
,sentp
->ic
,sentp
->cc
);
printf("%s %c %c\n",sentp
->sp
,sentp
->ic
,sentp
->cc
);
for(sentp
=sent
;sentp
->cc
!= END
;sentp
++){
if(sentp
->cc
==ADJ
&& (sentp
+1)->cc
==NOUN
){
printf("%s\n",sentp
->sp
);
else if(sentp
->cc
==NOUN
)printf("%s\n",sentp
->sp
);
for(sentp
=sent
;sentp
->cc
!= END
;sentp
++){
if(sentp
->cc
!= ',' && sentp
->cc
!= '"')nn
++;
if(sentp
->cc
== VERB
|| sentp
->cc
== BE
|| sentp
->cc
== AUX
)kk
++;
if(nn
< 4 && kk
== 0)return;
imper
= lexp
= lpas
= index
= lverbc
= nom
= 0;
conjf
= verbf
= kk
= nn
= sc
= comp
= begsc
= 0;
bflg
= olvb
= infinf
= ovflg
= 0;
/* printf("%c:",sentp->ic); */
if(sentp
->cc
== ';')comp
++;
if((sentp
->cc
!= ',') && (sentp
->cc
!= '"')){
if((sentp
->ic
==NOM
)||(sentp
->ic
==PNOUN
&& islower(*(sentp
->sp
)))){
if(nosave
&& (deb
!= NULL
)) /* SAVE NOM */
fprintf(deb
,"%s\n",sentp
->sp
);
bflg
= infinf
= ovflg
= 0;
if(ovflg
== 0 && infinf
== 0){
if(bflg
&& sentp
->ic
== ED
){lpas
++; ++passive
;}
bflg
= infinf
= ovflg
= 0;
if(nosave
&& (deb
!= NULL
)) /* SAVE NOM */
fprintf(deb
,"%s\n",sentp
->sp
);
bflg
= infinf
= ovflg
= 0;
if(infinf
&& (sentp
+1)->cc
== VERB
);
bflg
= infinf
= ovflg
= 0;
bflg
= infinf
= ovflg
= 0;
if(sentp
->leng
== 5 && *(sentp
->sp
) == 't' && *((sentp
->sp
)+3)=='r'){index
=14;lexp
=1;}
else if(sentp
->leng
==2&& *(sentp
->sp
) == 'i' ){index
=14;lexp
=1;}
bflg
= infinf
= ovflg
= 0;
if(sentp
->ic
== THAT
|| sentp
->ic
== WHO
)sc
++;
bflg
= infinf
= ovflg
= 0;
bflg
= infinf
= ovflg
= 0;
if(ovflg
== 0 && infinf
== 0){
if(ovflg
== 0 && infinf
== 0){
if((sentp
-1)->cc
!= CONJ
)
bflg
= infinf
= ovflg
= 0;
printf("%s %s\n",spart
,sentp
->sp
);
if(*ssp
>= '0' && *ssp
<= '9'){
printf(". %s\n",sentp
->sp
);
if(sentno
< MAXPAR
&& nn
> 0)
else if(*(sentp
->sp
) == '/')icount
++;
if(rstyle
||pstyle
)rd
= 4.71*((float)(nlet
)/(float)(nn
))+.5*(float)(nn
)-21.43;
(rstyle
&& rd
>=rthresh
)||(lstyle
&&nn
>= lthresh
)||(pastyle
&&lpas
)||(estyle
&&lexp
)
|| (nstyle
&& (nom
> 1 || (nom
&& lpas
)))|| (Nstyle
&& nom
)){
for(st
=sent
, kk
=0;st
->cc
!= END
;st
++){
else printf("%s ",st
->sp
);
if(!part
)printf("%s\n",sentp
->sp
);
printf(" sentence length: %d ",nn
);
if(comp
== 0)printf("SIMPLE ");
else printf("COMPOUND ");
else if(comp
== 0)printf("COMPLEX ");
else printf("COMPOUND-COMPLEX ");
if(index
==14)printf(":expletive:");
if(lpas
)printf(":passive:");
if(rstyle
||pstyle
)printf(" readability %4.2f ",rd
);
printf(": begins with %s\n\n",names
[index
]);
if(index
< 15)beg
[index
]++;
else if(comp
== 0)complex++;