https://github.com/spraakbanken/swell-pseudonymize-js
Pseudonymizer for the SweLL-project
https://github.com/spraakbanken/swell-pseudonymize-js
pseudonymisation swell
Last synced: 4 months ago
JSON representation
Pseudonymizer for the SweLL-project
- Host: GitHub
- URL: https://github.com/spraakbanken/swell-pseudonymize-js
- Owner: spraakbanken
- License: mit
- Created: 2018-10-03T13:19:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T00:45:06.000Z (over 1 year ago)
- Last Synced: 2025-01-28T11:26:32.851Z (6 months ago)
- Topics: pseudonymisation, swell
- Language: TypeScript
- Size: 1.94 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pseudonymization module
## Usage
```
import {pseudonymize} from 'pseudonymization'pseudonymize('Karlstad', ['city']) // returns random city
pseudonymize('Karlstad', ['city', '1']) // returns random city
pseudonymize('Karlstad', ['city', '1']) // returns Karlstad againpseudonymize('Karlstad', ['city', '2']) // returns random city, but not Karlstad
```
## Bugs
`package.json` contains too many dependencies due to copy-paste, find out which
ones are needed for the tests.## Changing data
For now, all the named entities live in `src/names.ts` and may be changed there.
## Development
Use `yarn test` and `yarn build` before committing.