TypingDNA has been recognized as a Sample Vendor in Gartner® Hype Cycle™ for Digital Identity, 2024 and Gartner® Hype Cycle™ for Financial Crime, 2024. Learn more

Types of typing patterns

Typing patterns are at the core of Authentication API's capabilities to be able to capture a person typing behavior when they type on their keyboards. The way you capture a person's biometric traits determines the quality and the accuracy of the identity recognition technology. This is why it's important for developers to understand and have the right integration of typing biometrics capabilities in their platform.

Types of typing patterns and how to use them?

There are two types of typingdna patterns that the Authentication API JavaScript recorder class can capture and they are used for different scenarios.

1. Sametext pattern (type: 1 and 2)

Use this type of typing pattern when you want to authenticate a user on the exactly the same text that was used when he was enrolled. Typical same texts are typed emails, usernames, passwords, first names, last names, phone numbers, credit card numbers, and short identical sentences. If you change a character of any of these, you will not be able to correctly use them.

As of December 2024, we strongly recommend using type:2 typing patterns as our core technology has significantly improved accuracy when these patterns are being used. Ideally you will want to use it on arbitrary text of 4 to 7 words (30 to 40 chars).

Here is a good example:

Enrollment text Authentication text
Make yourself necessary to somebody

Characters: 35
Function example:
tdna.getTypingPattern ({
   type: 1,
   text: "Makeyourselfnecessarytosomebody"
})
Make yourself necessary to somebody

Characters: 35
Same text as in enrollment

Here is a bad example:

Enrollment text Verification text
Cars are useful but they pollute our environment.

Characters: 49
It's a wonderful day to explore the city on a bicycle.

Characters: 54
Same text as in enrollment

2. Anytext pattern (type: 0) - Not recommended

Use this type of typing pattern when you want to authenticate a user on different text than the one used for enrollment. Typical any text are typed text that is usually different each time like composing emails, writing documents, and having conversations.

A good example:

Enrollment text Verification text
Cars are useful but they pollute our environment. It's a wonderful day to explore the city on a bicycle. Which one would you choose from these two tentative options?

Characters: 165
Function example:
tdna.getTypingPattern ({
   type: 0,
   length=165
})
To be capable of steady friendship or lasting love, are the two greatest proofs, not only of goodness of heart, but of strength of mind.

Author: William Hazlitt

Characters: 136
Different text as in enrollment

A bad example:

Enrollment text Verification text
Cars are useful but they pollute our environment. It's a wonderful day to explore the city on a bicycle. Which one would you choose from these two tentative options?

Characters: 165
Cars are useful but they pollute our environment. It's a wonderful day to explore the city on a bicycle. Which one would you choose from these two tentative options?

Author: William Hazlitt

Characters: 136
Different text as in enrollment

For more support, contact us at support@typingdna.com.

Related tutorials