Beruflich Dokumente
Kultur Dokumente
COGNITIVE INTERVIEWING
Cre By
Van & San
Introduction
Based on the research of Dr. Charles A. Morgan, the method of polygraph that
is used by official organization to detect lies are not very effective. He mentions
that the person who is interviewed can be trained to hide the truth behind usual
behaviours so that they don’t show any obvious signals that they are lying. Apart
from that, he states that people who are lying, either trained or not, are likely to
speak less information and probably repeat some words for several times. It is
believed that the people who are lying will avoid giving out details and try to
convince other people to accept their words by saying some keywords many times.
Therefore, Dr. Morgan suggests that we might have a better chance at detecting lies
if we can analyze the repetition of unique words in a particular statement.
Concepts
As we have learned about Scanner class and Arrays from the previous classes,
we decided to use a Scanner to get the input from the user, which would play as
the statement for our lie detector. We also thought that we would use Delimiters to
eliminate the commonly used words such as ‘I,’ ‘and,’ ‘the,’ and ‘is,’ etc. Then, we
would convert the statement which is in the form of String into an Array that
contains words from the statement. After that we would create different Loops that
would detect repetition of various words in the Array, and compare the percentage of
repetition to the total amounts of word in the whole statement. In this case, if
there are more than 50% of repetition occurs in the statement, we would consider
that statement as a lie and anyone with repetition under 50% would be the truth.
Original Plan
1. Obtain a statement using the Scanner class.
2. Use a delimiter to eliminate common use words such as
‘the,’ and ‘and,’ etc.
3. Create an array containing the string from the Scanner by
splitting up the words.
4. Check for repeated words and print them out.
First Draft
Methods:
1. Scanner class (line 8) - obtain the
story
2. String (line 9) - store the story from
the Scanner as a string
3. Delimiter (line 13) - eliminate
unwanted punctuations, characters, or
words
4. while loop (line 15) - store the split
message into a string
5. String[] (line 21) - turn the string
into an array
6. for loop (line 25) - check for
repetition and print the repeated word
Running the Code
The Output:
The Problem(s):
The Problem(s):
Sounds confusing?
So basically if there are 6 “a” , it will
be counted as 15.
a a a a a a
15
What should we do?
Add break; ?
The Output: