Skip to content

Commit

Permalink
Rephrase a section in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeeh committed Jul 30, 2024
1 parent 2b32309 commit e98b8d5
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 24 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ Recognising good bots such as web crawlers is useful for multiple purposes. Alth
## How `isbot` maintains accuracy

> `isbot`'s prized possession is the accurate identification of bots using a regular expression. It uses expansive and regularly updated lists of user agent strings to create a regular expression that matches bots and only bots.
>
> This is done by using a lookbehind pattern which is not supported in all environments. A fallback is provided for environments that do not support lookbehind which is less accurate. The test suite includes a percentage of false positives and false negatives which is deemed acceptable for the fallback: 1% false positive and 75% bot coverage.
`isbot` is an asset when it can most accurately identify bots by the user agent string. It uses expansive and regularly updated lists of user agent strings to create a regular expression that matches bots and only bots.

### Fallback

The pattern uses lookbehind methods which are not supported in all environments. A fallback is provided for environments that do not support lookbehind. The fallback is less accurate. The test suite includes a percentage of false positives and false negatives which is deemed acceptable for the fallback: 1% false positive and 75% bot coverage.

## Data sources

Expand Down
2 changes: 1 addition & 1 deletion fixtures/downloaded/downloaded
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon, 22 Jul 2024 22:50:32 GMT
Tue, 30 Jul 2024 08:14:34 GMT
Loading

0 comments on commit e98b8d5

Please sign in to comment.