Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

Oracle Policy Modeling

Attribute Text

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Objectives

After completing this lesson, you should be able to:


• Construct statements and variables
• Parse statements

#-2 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Choosing Statement Text

• All statements must contain at least one verb.


• The verb in the sentence is the ―doing‖ or ―action‖ word
– Examples are:
— the person is happy
— the child likes ice cream
— the apple rolled off the table

#-3 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Principles of Statement Text

When creating statement (Boolean) attributes, make sure the


sentence is:
– A complete statement (Does the sentence have a verb, and
does the sentence make sense?)
— CORRECT FORM: the person is walking the dog
— INCORRECT FORM: the person walking
– Not written in third person (about the person, rather than
―you‖ or ―I‖?)
— CORRECT FORM: the person is walking the dog
— INCORRECT FORM: you are walking the dog
– Capable of standing alone (Does the sentence make sense
without reference to other information?)
— CORRECT FORM: the person is walking the dog
— INCORRECT FORM: the person is walking him

#-4 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Principles of Statement Text (Cont’d.)

When creating statement (Boolean) attributes, make sure


the sentence is:
• Able to be negated (Does the sentence make sense if
you add the word "not"?)

— CORRECT FORM: the dog has been walked by


everyone in the house (negates to "the dog has not been
walked by everyone in the house")

— INCORRECT FORM: everyone in the house has walked


the dog (negates to "everyone in the house has not
walked the dog" which is not a sensible negation if some
have walked the dog and some have not)

#-5 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Principles of Statement Text (Cont’d.)

When creating statement (Boolean) attributes, make sure


the sentence is:
• A representative of a single concept (Is there only one
sensible place to put the negation?)
— CORRECT FORM: (statement 1) the dog has been
walked, (statement 2) the dog is eating

— INCORRECT FORM: the dog has been walked and is


eating (negates to "the dog has not been walked and is
eating" or "the dog has been walked and is not eating",
neither is a complete negation of the sentence)

#-6 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Choosing Variable Text

• Variable attributes do not need a verb because they are


describing a concept or thing. However, some principles
do apply.

#-7 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Principles of Variable Text

• When creating variable attributes, be sure to:


– Include enough information for the attribute to make sense in
isolation
— CORRECT FORM: the person’s annual income
— INCORRECT FORM: the income
– Start with ―the‖
— CORRECT FORM: the person’s income
— INCORRECT FORM: income
– State the unit of measurement if appropriate
— CORRECT FORM: the height of the person in inches
— INCORRECT FORM: the height of the person

#-8 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Oracle Policy Modeling
Checkpoint 1

#-9 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes : ―the person works at the museum‖
?
1. Yes
2. No

# - 10 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes: ―the woman and man crossed the
road together‖?
1. Yes
2. No

# - 11 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes: ―it has been submitted on time‖?
1. Yes
2. No

# - 12 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes: ―the main source of income‖?
1. Yes
2. No

# - 13 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes: ―the assessor will consider the
person's situation and make a determination ‖?
1. Yes
2. No

# - 14 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following statement compliant with the principles for


phrasing Boolean attributes: ―nobody saw the person
responsible‖?
1. Yes
2. No

# - 15 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following attribute compliant with the principles for


phrasing Variable attributes: ―the person’s full name‖?
1. Yes
2. No

# - 16 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following attribute compliant with the principles for


phrasing Variable attributes: ―weight in kg‖?
1. Yes
2. No

# - 17 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Is the following attribute compliant with the principles for


phrasing Variable attributes: ―its name‖?
1. Yes
2. No

# - 18 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Other Tips and Tricks: Apostrophes

• The two main uses of the apostrophes in the English


language are to show:
– Possession (e.g. Mike’s car)
– Omission of letters (e.g. Mike’s running late)
• Apostrophes are not used for:
– His, hers, its (meaning belonging to (to it/ him/her)
– For plurals (the cars)

# - 19 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Using Apostrophes for Possession

Apostrophes are used when indicating possession or


ownership. Follow the rules below when using apostrophes to
show possession:
– Add 's to singular owners
— the girl's coat
— James's house
– Add 's to plurals that do not end in -s
— the children's toys
— the geese's feathers
– Add ' to plural forms that end in -s
— five days' work
— houses' fences
– Add 's to the last owner to show joint possession of an object
— Sally and John's dog
— the individual and the company's agreement

# - 20 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Showing Omissions of Letters

Contractions are formed by combining one or more words into


a new word, usually by omitting one or more letters. The
apostrophe is used to indicate this omission. Examples of
contractions are:
– It's = It is
– You'll = You will
– Who's = Who is
– Shouldn't = Should not
– Let's = Let us

# - 21 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Oracle Policy Modeling
Checkpoint 2

# - 22 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Does the following statement apply the rules for apostrophes


correctly: ―The party's candidate is yet to be announced‖?
1. Yes
2. No

# - 23 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Does the following statement apply the rules for apostrophes


correctly: ―Theyre keen to stay where they are but the choice is
not his or her's‖?
1. Yes
2. No

# - 24 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Quiz

Does the following statement apply the rules for apostrophes


correctly: ―It's important that the company values it's
employees‖?
1. Yes
2. No

# - 25 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Generating Statement Parses

All statements are parsed automatically to identify the verb in the


statement upon which the positive, negative, question, and uncertain
forms may be built. For example, parsing the statement the dog bit the
man would generate:

Statement or Question Parsing Form


the dog bit the man Positive

the dog did not bite the man Negative

did the dog bite the man? Question

the dog might have bitten the main Uncertain

# - 26 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


The Operative Verb

• When statements only include one verb, it is easy for the


parser to identify the verb and generate the correct
sentence forms.
• When a statement contains more than one verb, the parser
may not identify the correct verb as the one around which
to base the different sentence forms. For this reason, you
need to be able to identify the operative verb in a
statement so that you can assess whether the statement
has been parsed correctly.

# - 27 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Identifying the Operative Verb

• The operative verb is the one that you would change


if you were to negate the sentence.
– For example, the sentence below contains two verbs:
— the person is happy to be home
– To negate this sentence we would place the word "not" next
to the word "is":
— the person is not happy to be home
– Therefore, "is" is our operative verb in this sentence and the
form around which the different sentence forms should be
generated.

# - 28 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Reviewing the Statement Parses

The Confirm New Attributes dialog box is displayed whenever


you compile after adding new attributes.
In this dialog, the verb which is being used for the parse is
underlined for each statement attribute in the list.

# - 29 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Reviewing the Statement Parses (Cont’d.)

You should review this list closely to see whether any statements
have not been parsed correctly. The following table below describes
what you should be looking for whenever you add new attributes.

What to Look For What This Means What to Do


Statements highlighted with gray The statement contains more than If the underlined verb is the correct
background one recognized verb. verb, you can leave the sentence
as is, if not, select a new verb.

Statements in which no verb is The statement does not contain a You will need to add the
used recognized verb and no sentence unrecognized verb to the custom
forms have been generated. verb list, and then reparse the
statement.

Statements which contain The verb has not been by the You will need to add the
compound verbs where the entire parser as a compound verb, unrecognized verb to the custom
verb is underlined resulting in potentially incorrect verb list, and then reparse the
sentence generation. statement.

# - 30 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Selecting an Alternative Parse

If the parser has identified multiple


verbs in a statement and you think
the underlined verb is not the
correct verb around which the
parse should be based, you need
to select an alternate parse.
To select an alternate parse, do
this:
1. Select the statement in the Confirm
New Attributes dialog box > Edit.
2. In the Select Parse dialog box,
select a statement in the Parses list.
3. Select the parse which has the
correct sentence forms and select
OK.

# - 31 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Exercise 1
Parsing Statements
• In this exercise you will practice parsing statements in a
Word document and correcting any incorrect parses

# - 32 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.


Summary

In this lesson, you should have learned how to:


• Apply the principles for phrasing variables and statements
• Identify the operative verb in statements
• Correctly parse statements in Oracle Policy Modeling

# - 33 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.

You might also like