Research Article

PurExt: Automated Extraction of the Purpose-Aware Rule from the Natural Language Privacy Policy in IoT

Algorithm 1

SentenceClassification ().
Input: a sentence to be classified.
 Output: a sentence category label in , where for explicit sentence, for implicit sentence, and for other sentences.
(1)Construct a dependency tree structure of
(2)Let be the root of
(3)if is a or then
(4)  if the subject of is a Pnoun then
(5)   if is modified by a complement containing at least one CoU verb then
(6)    return.
(7)   else
(8)    return
(9)   end if
(10)  else
(11)   return
(12)  end if
(13)else if is CoU verb then
(14)if the object of contains at least one Data Object then
(15)   return
(16)  else
(17)   return
(18)  end if
(19)else
(20)  return
(21)end if