(S (S (BASENP (DT This) (NN act)) (VP (VP (VBD allowed) (S (NP (BASENP (JJ foreign) (NNS nationals)) (VP (VBN suspected) (PP (IN of) (BASENP (NN terrorism))))) (VP (TO to) (VP (VB be) (VP (VBN detained)))))) (COMMA ,) (PP (IN before) (S (VP (VBG being) (VP (VP (VBN repealed) (PP (IN in) (BASENP (NN 2004)))) (PP (JJ due) (PP (TO to) (BASENP (PRPD its) (JJ discriminatory) (NN nature)))))))))) (PERIOD .))