Skip to content

Commit 9b7607e

Browse files
committed
fix(type): Licence => License
1 parent 692ae48 commit 9b7607e

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

regex-imatriculation/regex-imatriculation.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Identify Licence Plates with the RegexExtractor
2+
title: Identify License Plates with the RegexExtractor
33
duration:
44
---
55

@@ -14,33 +14,33 @@ duration: 3
1414
Botfuel natively supports 31 built-in entities such as `forename`, `location`, `duration` and `url`. You can also create your own dictionary of custom entities using the <a href="https://docs.botfuel.io/dialog/reference/entities/custom-entities" target="_blank">CorpusExtractor</a> class.
1515
However, you may want to use an extractor based on regular expression.
1616

17-
In this tutorial, you will learn how to create an extractor for French licence plates using a RegexExtractor.
17+
In this tutorial, you will learn how to create an extractor for French license plates using a RegexExtractor.
1818

1919
## You will need
2020
* To have complet the <a href="/#/codelab/getting-started" target="_blank">Getting Started tutorial</a>
2121
* A very basic understanding of Regular expressions (but don't panic, we said very basic!)
2222

2323
--sep--
2424
---
25-
title: The French licence plate system
25+
title: The French license plate system
2626
duration: 4
2727
---
2828

29-
# The French licence plate system
29+
# The French license plate system
3030

3131
The French license plate system (known as SIV for système d’immatriculation des véhicules) is used by all cars registered since 2009.
3232

3333
<center>
34-
<img src="https://github.com/Botfuel/tutorials/raw/master/regex-imatriculation/images/licence-plate.png" alt="Regex explanation" title="Regex explanation"/>
34+
<img src="https://github.com/Botfuel/tutorials/raw/master/regex-imatriculation/images/license-plate.png" alt="Regex explanation" title="Regex explanation"/>
3535
</center>
3636

3737
<aside class="infos">
38-
<b>Note:</b> Under the SIV system, licence plates contain seven alphanumeric characters: two letters, a dash, three numbers, a dash and two letters, such as AA-229-AA. The system is nationwide and chronological. The first car registered in France under the SIV received a AA-001-AA licence plate, the second one AA-002-AA, the third AA-003-AA. The system will be exhausted when ZZ-999-ZZ is reached, which is scheduled to occur after 80 years of use.
38+
<b>Note:</b> Under the SIV system, license plates contain seven alphanumeric characters: two letters, a dash, three numbers, a dash and two letters, such as AA-229-AA. The system is nationwide and chronological. The first car registered in France under the SIV received a AA-001-AA license plate, the second one AA-002-AA, the third AA-003-AA. The system will be exhausted when ZZ-999-ZZ is reached, which is scheduled to occur after 80 years of use.
3939

4040
You can find more information on <a href="https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_France#SIV" target="_blank">Wikipedia</a>
4141
</aside>
4242

43-
The SIV system makes is very easy to identify if a given string is a valid licence plate. However, as mentioned in wikipedia `The SIV format provides ((23 x 23) - 2) x 999 x ((23 x 23) - 1), or 277,977,744 different combinations`. Therefore, we don't recommend you build a corpus of entities with every possible combination...
43+
The SIV system makes is very easy to identify if a given string is a valid license plate. However, as mentioned in wikipedia `The SIV format provides ((23 x 23) - 2) x 999 x ((23 x 23) - 1), or 277,977,744 different combinations`. Therefore, we don't recommend you build a corpus of entities with every possible combination...
4444

4545
--sep--
4646
---
@@ -60,14 +60,14 @@ We mentioned in the introduction that you would need a basic understanding of re
6060
<img src="https://github.com/Botfuel/tutorials/raw/master/regex-imatriculation/images/regex.png" alt="Regex explanation" title="Regex explanation"/>
6161
</center>
6262

63-
Our licence plate can be separated into 5 sections :
64-
1. `AA`: Here, we use `[A-Za-z]{2}` to match any combination of two letters between range `A-Z` or `a-z` as we don't want our extractor to be case sensitive. We want to extract the licence plate even if the user sends us one in lowercase.
63+
Our license plate can be separated into 5 sections :
64+
1. `AA`: Here, we use `[A-Za-z]{2}` to match any combination of two letters between range `A-Z` or `a-z` as we don't want our extractor to be case sensitive. We want to extract the license plate even if the user sends us one in lowercase.
6565
2. `-`: A literal dash character.
6666
3. `999`: We use `[0-9]{2,3}` as we want to match any combination of 2 or 3 digits. (Scooters use 2 letters).
6767
4. `-`: Another literal dash character.
6868
5. `AA`: The last section is the same as the first one.
6969

70-
Once we have our regular expression to extract a licence plate, we can use is in our extractor
70+
Once we have our regular expression to extract a license plate, we can use is in our extractor
7171

7272
## Use it in the RegexExtractor
7373

@@ -106,7 +106,7 @@ Got to <a href="https://app.botfuel.io" target="_blank">https://app.botfuel.io</
106106
<img src="https://github.com/Botfuel/tutorials/raw/master/regex-imatriculation/images/trainer.png" alt="intent in trainer" title="Intent in trainer"/>
107107
</center>
108108

109-
Add a few training phrases the user may enter to give you his licence plate.
109+
Add a few training phrases the user may enter to give you his license plate.
110110

111111
## Create the Dialog
112112

@@ -146,11 +146,11 @@ class LicensePlateView extends PromptView {
146146

147147
if (licensePlate) {
148148
return [
149-
new BotTextMessage(`Thanks, your licence plate is ${licensePlate.toUpperCase()}.`),
149+
new BotTextMessage(`Thanks, your license plate is ${licensePlate.toUpperCase()}.`),
150150
];
151151
}
152152

153-
return [new BotTextMessage(`Sorry, I did not understand your licence plate.`)];
153+
return [new BotTextMessage(`Sorry, I did not understand your license plate.`)];
154154
}
155155
}
156156

0 commit comments

Comments
 (0)