car
This module provides dictionaries of around 150 car brands and over 2,000 car models.
Import
Import either or both of the dictionaries to your project via the require
tag:
require: car/carBrandEn.sc
module = sys.zb-common
require: car/carModelEn.sc
module = sys.zb-common
After importing the file, the following becomes available:
- the
$CarBrandsEn
and/or$CarModelsEn
named entity dictionaries; - the
$CarBrand
and/or$CarModel
named entities for processing car names with patterns.
Value format
Car brand dictionary
Field | Type | Description |
---|---|---|
id | Number | Brand ID |
name | String | Brand name |
country | String | Country of origin |
production_spans | Array | Production spans |
The production_spans
array contains objects with a required start
property and an optional end
property denoting the production start and end years respectively.
tip
For example,
[{"start": 1974, "end": 1978}, {"start": 2008}]
means that the brand production was started in 1974, discontinued in 1978, and renewed in 2008.Car model dictionary
Field | Type | Description |
---|---|---|
name | String | Model name |
brand_id | Number | The corresponding brand ID |
Dictionary entry examples
Car brand dictionary
33;Audi;{"id": 33, "name": "Audi", "country": "Germany", "production_spans": [{"start": 1909}]}
119;Rolls-Royce, Rolls Royce;{"id": 119, "name": "Rolls-Royce", "country": "United Kingdom", "production_spans": [{"start": 1904}]}
Car model dictionary
707;Cadillac Deville,Deville;{"name": "Cadillac Deville", "brand_id": 43}
1845;Peugeot Boxer, Boxer;{"name": "Peugeot Boxer", "brand_id": 110}