#JavaScript (ES6), 45 bytes
JavaScript (ES6), 45 bytes
s=>+(n=s.split`/`[0])?[n*n-1?n:'-'[~n]]+'b':n
###Commented
Commented
s => // s = input: "numerator/0"
+( //
n = s.split`/`[0] // n = numerator, as a string
) ? // if n coerced to a Number is neither equal to 0 nor NaN:
[ n * n - 1 ? // if abs(n) is not equal to 1:
n // append the numerator
: // else:
'-'[~n] // append '-' if n = -1, or an empty string otherwise
] + 'b' // append 'b'
: // else:
n // just output the numerator because it's either "0" or
// an expression that already contains 'b'