<commit_before>Event Parser
========

Рarses events written in plain English, and returns an object defining a basic event.

##Features
* detects various dates
* detects relative dates
* support multiple formats
* detects recurrency
* suggests event title, places and involved names at given subject


##Achtung
Library is in development. All features not implemented yet. Feel free to submit bugs, unit tests, and suggest improvements as well.

##Usage

```javascript
var event = "Have fun with Jane at home on 11th dec".parseEvent({

	// callback called after parse is done;
	onParsed: function() {},

   	// callback called after each instance of date is parsed;
    onDateParsed: function (parsedDateArray) {},

   	// callback called after each instance of time is parsed;
    onTimeParsed: function (parsedTimeArray) {}
});

```

```javascript
{
	title: "Have fun with Jane at home at 12 dec 2020",
	startDate: "‌Sun Dec 12 2020 00:00:00 GMT+0300",
	endDate: undefined,
	allDay: true,
	isRecurrent: false
}
````

##Install
Use Bower to install library:
```sh
bower install event-parser.js
```

##Todo
* Support RRULE

##Inspired by

* [Sherlock -- javascript NLP event date parser library](https://github.com/neilgupta/Sherlock/)
* [Event Parser -- Perl NLP recurrent event date parser library](https://github.com/kvh/recurrent/blob/master/src/recurrent/event_parser.py)

## Author
- Email: <EMAIL>
- GitHub: https://github.com/rayzru

## Copyright and license

Code and documentation copyright 2011-2016 by <NAME>.
Code released under [the MIT license](https://github.com/rayzru/event-parser/blob/master/LICENSE).<commit_msg>this|next week|month|year end date fix<commit_after>Event Parser
========

Рarses events written in plain English, and returns an object defining a basic event.

##Features
* detects various dates
* detects relative dates
* support multiple formats
* detects recurrency
* suggests event title, places and involved names at given subject


##Achtung
Library is in development. All features not implemented yet. Feel free to submit bugs, unit tests, and suggest improvements as well.

##Usage

```javascript
var event = "Have fun with Jane at home on 11th dec".parseEvent({

	// callback called after parse is done;
	onParsed: function() {},

   	// callback called after each instance of date is parsed;
    onDateParsed: function (parsedDateArray) {},

   	// callback called after each instance of time is parsed;
    onTimeParsed: function (parsedTimeArray) {}
});

```

```javascript
{
	title: "Have fun with Jane at home at 12 dec 2020",
	startDate: "‌Sun Dec 12 2020 00:00:00 GMT+0300",
	endDate: undefined,
	allDay: true,
	isRecurrent: false
}
````

##Install
Use Bower or NPM to install :
```sh=Bower
bower install event-parser.js
```
```sh=NPM
npm install event-parser.js
```

##Todo
* Support RRULE

##Inspired by

* [Sherlock -- javascript NLP event date parser library](https://github.com/neilgupta/Sherlock/)
* [Event Parser -- Perl NLP recurrent event date parser library](https://github.com/kvh/recurrent/blob/master/src/recurrent/event_parser.py)

## Author
- Email: <EMAIL>
- GitHub: https://github.com/rayzru

## Copyright and license

Code and documentation copyright 2011-2016 by <NAME>.
Code released under [the MIT license](https://github.com/rayzru/event-parser/blob/master/LICENSE).
{'fraction_non_alphanumeric': 0.11177704525022475, 'fraction_numerical': 0.01917890320647288, 'mean_word_length': 4.401294498381877, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1385109', 'n_tokens_mistral': 1069, 'n_tokens_neox': 969, 'n_words': 372}