-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some functions to go along the db #25
base: master
Are you sure you want to change the base?
Conversation
R/detect.R
Outdated
check_is_lang(lang_code) | ||
splitted <- tokenize_words(vec, simplify = TRUE) | ||
n <- sweary_n(vec, lang_code) | ||
if (n !=0){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add spaces so that the code is clean if (n != 0) {
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
context("test-detect") | ||
|
||
dre <- c("Yeah, nigga, we're still fuckin' with you Still waters run deep Still Snoop Dogg and D.R.E. '99, nigga, guess who's back Still, still doin' that shit, Andre? Oh for sho' Yeah Check me out It's still Dre Day nigga, AK nigga Though I've grown a lot, can't keep it home a lot ‘Cause when I frequent the spots that I'm known to rock You hear the bass from the truck when I'm on the block Ladies they pay homage, but haters say Dre fell off How? Nigga, my last album was The Chronic They wanna know if he still got it They say rap's changed, they wanna know how I feel about it (If you ain't up on thangs) Dr. Dre is the name, I'm ahead of my game Still puffin' my leaves, still fuck with the beats Still not lovin' police (Uh-uh) Still rock my khakis with a cuff and a crease (For sho') Still got love for the streets, reppin' 213 (For life) Still the beats bang, still doin' my thing Since I left ain't too much changed, still I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. Since the last time you heard from me I lost some friends Well, hell, me and Snoop, we dippin' again Kept my ear to the streets, signed Eminem He's triple platinum, doin' 50 a week Still, I stay close to the heat And even when I was close to defeat, I rose to my feet My life's like a soundtrack I wrote to the beat Treat rap like Cali weed: I smoke 'til I sleep Wake up in the A.M., compose a beat I bring the fire 'til you're soakin' in your seat It's not a fluke, it's been tried, I'm the truth Since 'Turn Off the Lights' from the World Class Wreckin Cru I'm still at it, after mathematics In the home of drive-bys and ak-matics Swap meets, sticky green, and bad traffic I dip through, then I get skin, D.R.E. I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. It ain't nothin' but more hot shit Another classic CD for y'all to vibe with Whether you're coolin' on the corner with your fly bitch Laid back in the shack, play this track I'm representin' for the gangstas all across the world Still (Hittin' them corners in them lo-lo's, girl) I'll break your neck, damn near put your face in your lap Niggas try to be the king, but the ace is back (So if you ain't up on thangs) Dr. Dre be the name, still runnin' the game Still got it wrapped like a mummy Still ain't trippin', love to see young blacks get money Spend time out the hood, take they moms out the hood Hit my boys off with jobs, no more livin' hard Barbeques every day, drivin' fancy cars Still gon' get mine regardless (Still) I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E. I'm representin' for them gangstas all across the world (Still) Hittin' them corners in them lo-lo's, girl Still takin' my time to perfect the beat And I still got love for the streets, it's the D.R.E.b Right back up in your mothafuckin' ass 9-5 plus four pennies! Add that shit up D.R.E. right back up on top of thangs Smoke some with your Dogg No stress, no seeds, no stems, no sticks! Some of that real sticky icky icky Ooh wee! Put it in the air! Well, you's a fool Dr.") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need two newlines here? I'm not sure if this is a convention or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nop, not a convention, mistake. Changed.
Hi @ColinFay! Thanks for the PR, it's awesome! You added some things that were definitely on the way. You just pushed it in the right direction :-) I have a few comments on some of the commits.
An offtopic question at the end. How did you come across this project? |
Hey, So, I'll guess I'll answer point by point:
And for the last question, I stumbled upon your repo as I was doing some text mining, and was looking for a "bad word labeller". I coded some functions upon the package, so it seemed natural to me to send these one to you. |
Hi @ColinFay, sorry for the delayed reply. Point by point to you again.
And one more note. I'd prefer not to change the development version number yet. We're figuring out what should be included in the first version but until then it's pointless to change it IMO. |
Here are some funs to play with the db: