Skip to content

Commit

Permalink
Complete readme
Browse files Browse the repository at this point in the history
  • Loading branch information
doublessay committed Apr 28, 2024
1 parent 46cc9be commit ff7dbd6
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# A Python library to parse bibliographic references
# A Python library for Rule-Based reference parsing

refparse is an effective tool designed to extract structured data from unformatted reference strings. It is capable of parsing reference strings from **Web of Science, Scopus and CSSCI**.

## Install
Ensure Python 3.9 or higher is installed on your device.

```console
$ pip install refparse
```

## Basic Usage
```python
>>> import refparse
>>> source = "scopus"
>>> ref = "LeCun Y., Bengio Y., Hinton G., Deep learning, Nature, 521, pp. 436-444, (2015)"
>>> print(refparse.parse(ref, source))

{'author': 'LeCun Y., Bengio Y., Hinton G.',
'title': 'Deep learning',
'source': 'Nature',
'volume': '521',
'issue': None,
'page': '436-444',
'year': '2015'}
```

## Return Fields

| | Web of Science | Scopus | CSSCI* |
| :---: | :---: | :---: | :---: |
| author | ✓ | ✓ | |
| title | | ✓ | |
| source | ✓ | ✓ | |
| volume | ✓ | ✓ | |
| issue | | ✓ | |
| page | ✓ | ✓ | |
| year | ✓ | ✓ | |
| doi | ✓ | | |
| identifier except doi | | | ✓ |

\* CSSCI will return differently depending on reference type.

0 comments on commit ff7dbd6

Please sign in to comment.