You are on page 1of 11

Lie Detector

Technology to root out capitalist spy


Do not lie to me Dimitry

By Oak and Fah


● The capitalist polygraph machine is unreliable
with effectiveness of only 54%. Therefore we
must develop new and more effective machine
for uses in the law enforcement.
Why should the
politburo approve ● The polygraph relied on simple truth/lie which is

this technology
not really the best way to gauge a person’s
story.

● This new socialist machine will run on reliability


percentage which will be more reliable and less
assuming compare to the polygraph
The way this machine work is the officer will ask the
interviewees to describe the moment in question.

How it works and Then the officer will uses the transcript of the said
interview and put it into the machine.

why Then the machine will be looking into four criteria to

(intro) determine the reliability of the interviewees. Which


included:

● The length of the response


● The amount of unique words
● The length of a sentence
● English is the first language; Y/N?
When the code runs, the scanner take 2 inputs: String
transcript and boolean engFirst. Then the user input
How it works and why (steps) will be received by the class Lies() .

String[] splittedTranscript = After the function Lies() is called in main:


transcript.toLowerCase().split(" ");
● The transcript is splitted into an array by words

//check for unique words ● Each element of the array will be will be
int uniqueWords = compared to the one in front of it.
splittedTranscript .length;
● If they are the same, the number of unique
words (which is equal to the length of the array)
for (int i = 0; i<
will be decremented.
splittedTranscript .length; i++) {
for (int j = i+1; j<
splittedTranscript .length; j++){

if(splittedTranscript [i].equals(
splittedTranscript [j])){
uniqueWords --;
Calculating sentence length and average length of a
sentence in the transcript.
How it works and why (steps)
● Replacing every punctuation with #
//sentence length
● Store the transcript in an Array, splitting it by #
double transcriptLength =
splittedTranscript.length; ● Call the function .length to get the number of
int totalLength = 0; sentence in the transcript.
String sentence =
● Calculate average length by dividing the
transcript.replaceAll("\\.",
"#/").replaceAll("\\?",
transcript length with number of sentences.
"#/").replaceAll("\\!", "#/");
String[] numSentence =
sentence.split("#/");

double transcriptLength =
splittedTranscript.length;
double averageLength =
(double)transcriptLength/numSentence.len
gth;
The score is divided into categories and each category
has a maximum score of 100.
How it works and why (steps)
For example, total words score. If the number of
//score calculation words is more than 125, the score will be 100 in this
double totalWordsScore; category.
if (transcriptLength >=125){
totalWordsScore = 100; Other categories:
} else {
● sentence score (at least 12 words per sentence
totalWordsScore = (transcriptLength/125)
for full score)
*100;}
double rating; ● unique words score (60% of the words has to
if (engFirst == true) { be unique for full score.)
rating = (uniqueScore*0.45)+(sentence
Score*0.35)+(totalWordsScore*0.2); The score of each categories has different weight
} else { which also change depending on the suspect’s native
rating = (uniqueScore*0.15)+(sentence language.
Score*0.15) + (totalWordsScore*0.6);
}
The reasons for parameters of 1)response length
2)sentence length and 3)unique words because of

How it works and follows:

why ● The interviewees that construct and synthesize


his/her answer will be unable to produce an

(justification) elaborated and lengthy response

● Interviewees that speaking the truth will be able


to use sophisticated sentence structure and
integrate them into the answer; thus longer
sentence length

● The interviewees that construct and synthesize


his/her answer will utilize limited vocabulary
since they must quickly produce a fake answer
Why uses reliability scales?

Because the world is not black and white and to


determine a person’s worth from a single test is not

How it works and


productive. We do not wish to follow the path of the
Polygraph.

why Why ask about English as first language?

(justification) The calculation will change whether English is your


first language or not. This is because the person that do
not speak English as a first language may not have as
much vocabulary than the other interviewees, thus the said
person will be subjected to different calculation.
parameters Eng first Eng not first

unique words (60% 45% 15%


for full score)

sentence length 35% 15%


(12 words for full
score)

Total length (125 20% 60%


words for full
score)
Transcript: “Oh inspector, I work on a potato farm you
see. I work hard. I work on a potato farm. Working the
field with my potato. I grow potato since I was a boy. I

Examples never work anywhere else. I never work in other


professions. Trust me. I am an honest working man
like you. I grow potato and you kept this country safe. I
love potato you see. That is why I grow potato. Do you
like potato inspector? I can get you some potato. I
never work anywhere else.”

Respond Length: 90 words

Sentence Length: 6 words

Name: Jorji Costava Unique Words: 50%


Sex: Male
English First Language: Yes The reliability score of your transcript
Status: Worker is 54.4%iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
Question:Describe your profession
Status Update: Most likely a capitalist spy.
Transcript: “Am I in trouble inspector? I am here for a
vacation. My friend lives here you see. I do not want to
get into any trouble. I arrived two days ago. I will stay
here until next week. It is for my friend's wedding so I
Examples want to meet her. My friend lives by the underground
station. You can go ask her if you want. I do not want
to get into trouble, please inspector. I never broke the
law. I just come here to meet my friend. I met her in
university you see. We are in the same class and we
were best friend. So she asked me to be her maid of
honor you see. I came here for that exclusively,
nothing else.”

Respond Length: 125 words

Sentence Length: 7.9 words


Name: Shae Piersovska
Sex: Female Unique Words: 55%
English First Language: No
Status: Tourist The reliability score of your transcript
Question:Describe the reason of is 84.84375%iiiiiiiiiiiiiiiiiiiiiiiiiiii
your visit
Status: Most likely speaking the truth
Baesler, J. (2019, July 25). Why Lie Detector
Tests Can't Be Trusted. Retrieved from

Sources https://www.smithsonianmag.com/innovation/why-l
ie-detector-tests-cant-be-trusted-180972724/.

Episode 2: Pants on Fire (2.14.2014). (n.d.).


Retrieved from
https://thisiscriminal.com/episode-two-pants-on
-fire.

Katwala, A. (2019, September 5). The race to


create a perfect lie detector – and the dangers
of succeeding. Retrieved from
https://www.theguardian.com/technology/2019/sep
/05/the-race-to-create-a-perfect-lie-detector-a
nd-the-dangers-of-succeeding.

The Truth About Lie Detectors (aka Polygraph


Tests). (n.d.). Retrieved from
https://www.apa.org/research/action/polygraph.

You might also like