File: template.rst

package info (click to toggle)
dateparser 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,196 kB
  • sloc: python: 52,721; makefile: 155; sh: 15
file content (81 lines) | stat: -rw-r--r-- 1,851 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.. _language-data-template:

Language Data Template
----------------------

.. sourcecode:: none

    two-letter language code as defined in ISO-639-1 (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). e.g. for English - en:
        name: language name (e.g. English)
        no_word_spacing: False (set to True for languages that do not use spaces between words)

        skip: ["words", "to", "skip", "such", "as", "and", "or", "at", "in", "alphabetical", "order"]

        pertain: []

        monday:
            - name for Monday
            - abbreviation for Monday
        tuesday:
            - as above
        wednesday:
            - as above
        thursday:
            - as above
        friday:
            - as above
        saturday:
            - as above
        sunday:
            - as above

        january:
            - name for January
            - abbreviation for January
        february:
            - as above
        march:
            - as above
        april:
            - as above
        may:
            - as above
        june:
            - as above
        july:
            - as above
        august:
            - as above
        september:
            - as above
        october:
            - as above
        november:
            - as above
        december:
            - as above

        year:
            - name for year
            - abbreviation for year
        month:
            - as above
        week:
            - as above
        day:
            - as above
        hour:
            - as above
        minute:
            - as above
        second:
            - as above

        ago:
            - words that stand
            - for "ago"

        simplifications:
            - word: replacement
            - regex: replacement
            - day before yesterday: 2 days ago