This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FVÆ - For å Vere Ærleg (TBH) | |
RPH - Ristar På Hovudet (SMH) | |
FL;LI - For Langt, Las Ikkje (TL;DR) | |
TBT til ABT - AttendeBlikkTorsdag | |
LOL til BLHGN - Bles Luft Hardt Gjennom Nasen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gjenskaping av prosjektet | |
# Endre til ditt arbeidsområde her | |
setwd("M:/Documents/Bachelor") | |
# Innlastning av relevante pakker | |
library(qdap) | |
library(data.table) | |
library(tm) | |
library(wordcloud) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(stringr) | |
toMatch <- | |
regex( | |
c( | |
"[eE]uropeisk( |e){0,1} [sS]amarbeidsprosjekt", | |
"[eE]uropeisk(e){0,1} [uU]nion", | |
"EØS-avtal", | |
"EU-avtale", | |
"( ){1}EU(s| |\\Q,\\E|\\Q.\\E|\\Q?\\E){1}(?!\\Q-\\E)", | |
"( ){1}EU(-){0,1}[0-9]{1}", |